
Running WSH script from ASP page - problem
Hello,
I am trying to run a .vbs file from a web page written in ASP.
I am using the following code snippet:-
set objShell = Server.CreateObject("Wscript.Shell")
objShell.Run "cscript \\Web02\scripts\createPage.vbs > \\Web02\CMS\result.log", 5, True
My problem is that the script never executes.
However, if I double click on the script, or when I call the command cscript \\Web02\scripts\createPage.vbs > \\Web02\CMS\result.log
straight from the command prompt it works fine.
Any helpful ideas? Perhaps I should be calling the createPage.vbs file from it's physical location using drive letters, or a domain location?
Thanks in advance,
Natacha
**********************************************************************
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...