I am lookig for the JavaScript code to allow me to Execute things (like ANYTHING.EXE or TEST.HLP) on ClientSide.
In other words to do anything that can be done in the Run Command.
Thank you in anticipation
Pete
I was told that this was a good courteous newsgroup - by a friend in a newsgroup that is!!
Even if they don't know the answer, they will tell you that and may point you to the correct place.
You haven't and I guess that you won't
Thank you - I hope that your customers are kinder to you than you have been to me.
I guess that if I'd have been cleverer, I would have looked at some of the other posts and not have wasted my time.
set shell = CreateObject("WScript.Shell")
shell.Run "anything.exe"
shell.Run "anything.hlp"
shell.Run "anything.txt"
shell.Run "anything.doc"
Thank you
fin...@us.ibm.nospam.com wrote:
>><br><font size=1 face="sans-serif">Hi, Peter.</font>
><br>
><br><font size=1 face="sans-serif">Give us a chance!</font>
><br>
><br><font size=1 face="sans-serif">I can't imagine JavaScript code that would do what you want (execute code on the client's machine). Who would want a format c: command to be issued?</font>
><br>
><br><font size=1 face="sans-serif">The closest I got was to create a plugin or helper application, which can be launched when the browser receives a file of the type I specified. That gives the person on the client end the power to decide whether to install the plugin and so launch the program.</font>
><br>
><br><font size=1 face="sans-serif">Does this help?</font>
You can't run that script on a browser because of security limitations,
even if you instantiated a WScript object in Javascript. Nor can you do
it using java. This prevents a malicious person from sending you a page
with an applet that shell.Run's something like format c:. The browser
designers have gone to a lot of trouble to prevent anyone from doing
those kinds of things. If you find a way, it's a browser bug.
Tom Passin
BUT
If you say "Yes OK" it goes on and does it
Pete
Now that's fascinating ... Did you load it into the browser from a file
on your computer, or did it come from a web url? That might make a
difference too. I'll bet you were running IE - I doubt you could even
get that far on Netscape.
Tom Passin
Peter Byers wrote in message <8eoelr$i3...@news.netobjects.com>...
Code was both local and from web
Pete