problem creating object "wscript.shell"
- by sushant
my script looks like:
Dim WshShell, oExec
Set WshShell = CreateObject("WScript.Shell")
Set oExec = WshShell.Exec("cmd /c cd D:\d & D: & winzip32.exe -min -a D:\a")
Do While oExec.Status = 0
WScript.Sleep 100
Loop
WScript.Echo oExec.Status
The idea was to use explorer to open these files. The problem I'm having
though is on the line:
Set WshShell = CreateObject("WScript.Shell")
I keep getting the message ActiveX component can't create object:
'WScript.Shell'
I'm totally confused because this exact same code runs fine if I write it in
a .htm file.
Why does my browser treat my .asp page differently than the .html file?
How do i fix this problem?