locked
WScript.shell is not working with IIS 7.5 and Windows 7 64-bit RRS feed

  • Question

  • User463790794 posted

    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 sCmd 
    'oWshShell.run "c:\windows\SysWOW64\cmd.exe", 1, TRUE 
    'oWshShell.run "C:\inetpub\wwwroot\sharedagents\print.vbs",1,TRUE
    Set oWshShell=Nothing 
    


    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?

    Thursday, February 6, 2014 1:29 AM

All replies