how to run exe file from ASP?
Hi, all,
I try to run the notepad exe file from ASP, I search the goole and find the following source codes:
<%
Set WshShell = Server.CreateObject("WScript.Shell") 'not works
WshShell.Run "c:\windows\notepad.exe"
Set WshShell= nothing
%>
it didn't work! I think maybe it's because there is no notepad.exe in the server machine, so I put the above codes in the client side like:
sub writeFile()
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "c:\windows\notepad.exe"
Set WshShell= nothing
end sub
it's still not working, I check my machine that the path "c:\windows\notepad.exe" is right. Can anybody tell me why? What's the right way to do it?
|