You can't shell to a program that uses a user interface from server-side
code. Think about it: who is going to be sitting at the server's monitor to
work with and close these notepad windows ...?
If you want something to be called on the user's machine, then you need to
be thinking about client-side code. Just be aware that there are security
issues involved with client-side code as well. Would you want to navigate to
a web page that used client-side code to launch a potentially dangerous
program (format c:) on your machine?
You will need to investigate hta (html applications) and move followups to
this discussion to a client-side script newsgroup such as
m.p.scripting.vbscript or jscript.
HTH,
Bob Barrows
Nico wrote:
I try to execute a shell command from ASP with:
response.write("start")
Set wshShell = CreateObject("WScript.Shell")
wshShell.Run "notepad"
Set wshShell = Nothing
response.write("finished")
but it doesn't work, there is no error message, the page just displays
nothing. I tried various commands like "mkdir test" or calling a batch
file, always with the same result. When I just create the object, but
don't run a command the page is displayed without error messages.
Any ideas?