64-bit Editions of IIS
IIS in SySWoW Mode
WScript.shell is not working with IIS 7.5 and Windows 7 64-bit
Last post Feb 11, 2014 09:00 AM by ConnectAjay
Feb 06, 2014 01:29 AM|ConnectAjay|LINK
I have to run .vbs through classic asp. From past quite a few days, I am working on this, but still can't find a solution. My code is as follows:
Set oWshShell = Server.CreateObject("WScript.Shell")
'sCmd = "%systemroot%\sysnative\cmd.exe"
'oWshShell.run "c:\windows\system32\cmd.exe", 1, TRUE
'oWshShell.run "comspec% /c "C:\inetpub\wwwroot\sharedagents\print.vbs",1,TRUE)
'oWshShell.run "c:\windows\SysWOW64\cmd.exe", 1, TRUE
I tried all the methods that are commented out, but while executing the page, Browser/IIS hangs indefinitly. I have tried all sorts of variation to put in oWshShell, but still I am being able to put it through. I have checked permissions, Registry and all sorts
other tweaks that can be poosible. Is it due 32-bit/64-bit issue or something alse? Can someone help?
Feb 06, 2014 09:59 PM|Pengzhen Song - MSFT|LINK
You can try running iis application pool where your website exists in 32bit compatability mode.
Below is how you do it from IIS7 manager:
For more information, you can refer here
#enabling 32 bit mode:
#blog:problems running WScript.Shell on 64bit Windows
Hope it can help you.
Feb 11, 2014 09:00 AM|ConnectAjay|LINK
I tried that too. Even then my browser is still hanging.
I followed this approach too but still not reaching the Target