|
-
Mar 24th, 2005, 12:29 PM
#1
Thread Starter
New Member
Name 'WScript' is not declared
i'm getting this error from the compiler and i dont know what to import at the top of the page to make the error go away. does anyone know what i need? here is the code im trying:
Dim command As Object
command = WScript.CreateObject("Wscript.Shell")
command.run("c:\\winnt\\system32\\cmd.exe /k cscript c:\one.js"
any help would be greatly appreciated. thanks.
Jeff Griffin
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|