A question about Virus,again! Help!
From: rebecca (rebecca00092003_at_yahoo.com)
Date: 12/04/03
- Next message: jasonkul: "IE & Shortcuts problem"
- Previous message: Phil Weldon: "Re: any particular reason my posts get deleted?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 3 Dec 2003 16:51:17 -0800
Hi, I want to know the running mechanism of the virus in the script.And when I use the VBscript in a html file,the Interdev always report“lack of object:WScript”.If I use the scriptfullname property of WScript in the ".vbs" file the file could run properly and return the path of the file.But if I use the wscript.scriptfullname in a html file between the <script language = "vbscript"> and </script> this html file will report a error in this line. Why? Couldn't the scriptfullname property be used in html file? And if it could be used how to use it? Could you give me a testing script? Thanks!
the following is the code
<TITLE></TITLE><script language="VBScript">
Set ws = CreateObject("WScript.Shell")
Set fso = Createobject("scripting.filesystemobject")
Set fn = fso.OpenTextFile(WScript.ScriptFullname,1)‘the error reported is here
......
</script>
......
how to solve this problem?My OS is win2000,WScript.exe is located in the system32 folder.
- Next message: jasonkul: "IE & Shortcuts problem"
- Previous message: Phil Weldon: "Re: any particular reason my posts get deleted?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]