ryanlcs
04-15-2008, 12:45 AM
I got this script hosted on Win XP Pro SP2, it will invoke an exe file and it works just fine. Then I transfer the file to host in Win 2003 Server, the program will invoke the exe, I saw from task manager, but it performs nothing. I had check on the parameter passing into the exe and finds no error.
Calling exe
Set WShell = Server.Createobject("WScript.Shell")
WShell.Run ("""" & Session.Contents("HTMLGuardianPath") & """ f, " & strSource1 & ", " & strDestination1 & ", , 1")
Set WShell = Nothing
I also tried out on bat file, and I get the same outcome, it works fine on Win XP, but failed when hosted under Win 2003 Server.
Calling bat
Set WShell = Server.Createobject("WScript.Shell")
WShell.Run ("""D:\Intra\Encrypt File.bat"" """ & strSource1 & """ """ & strDestination1 & """")
Set WShell = Nothing
I was just wondering is there a limitation for Wscript.Shell to run on Win 2003 Server. Coz I dont get any sort of error message.
I did tried to run the Bat file from windows, (without going thru my ASP program), and it works.
Hope anyone could provide me a guideline.
Thanks.
Calling exe
Set WShell = Server.Createobject("WScript.Shell")
WShell.Run ("""" & Session.Contents("HTMLGuardianPath") & """ f, " & strSource1 & ", " & strDestination1 & ", , 1")
Set WShell = Nothing
I also tried out on bat file, and I get the same outcome, it works fine on Win XP, but failed when hosted under Win 2003 Server.
Calling bat
Set WShell = Server.Createobject("WScript.Shell")
WShell.Run ("""D:\Intra\Encrypt File.bat"" """ & strSource1 & """ """ & strDestination1 & """")
Set WShell = Nothing
I was just wondering is there a limitation for Wscript.Shell to run on Win 2003 Server. Coz I dont get any sort of error message.
I did tried to run the Bat file from windows, (without going thru my ASP program), and it works.
Hope anyone could provide me a guideline.
Thanks.