IIS ASP - Re: Calling WSH scripts from ASP - SOLUTION

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > June 2006 > Re: Calling WSH scripts from ASP - SOLUTION





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Calling WSH scripts from ASP - SOLUTION
Bob

2006-06-21, 1:21 pm

For those interested I found a solution. I had not specified the
command interpreter. See the edited line. You can use either "cmd" or
"%comspec%" to call the primary or secondary command interpreters
respectively.

function testScript()
dim objWSH
dim intReturn

intReturn = 7 'initialized the value to insure it changed
set objWSH = server.createObject("wscript.shell")
'edit
intReturn = objWSH.run("cmd /c
c:\intetpub\wwwroot\wshasp\storetime.vbs, 0, true")
'/edit
set objWSH = nothing
response.write("objWSH.run Result: " & intReturn & "<br />")
end function 'testScript

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com