My Script to run a Command-Line from ASP does not work.
Hi Michael,
I tried your advice. I get exit code: 1
But the script still does not run the command. When I do it in the Command
window manually, it runs. Below is the latest that I tried:
<%
Dim objWSS, Path, cCMD, exitCode
Path = "D:\Program Files\Program\The Program\"
cCMD= "clw45.exe -i k:\o\1.wmv -o k:\o\2.ghh -w 128 -df 0 -m 2 -p"
Set objWSS = CreateObject("WScript.Shell")
objWSS.Run "%COMSPEC% /c " & Path & cCMD,,True
exitCode = objWSS.Run ("%COMSPEC% /c " & Path & cCMD,,True)
Response.Write exitCode
%>
|