problem creating object "wscript.shell"
Posted
by sushant
on Stack Overflow
See other posts from Stack Overflow
or by sushant
Published on 2010-03-26T07:21:45Z
Indexed on
2010/03/26
7:23 UTC
Read the original article
Hit count: 488
vbscript
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.StatusThe 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?
© Stack Overflow or respective owner