Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Executing ClientSide

0 views
Skip to first unread message

Peter Byers

unread,
Apr 18, 2000, 3:00:00 AM4/18/00
to

Hi
This is probably the wrong place to ask this question - if it is, please forgive me and point me to the correct place.

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

Peter Byers

unread,
Apr 22, 2000, 3:00:00 AM4/22/00
to

Some newsgroups are good - some newsgroups are bad
Some newsgroups are courteous - some newsgroups are discourteous

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.

Peter Byers

unread,
Apr 27, 2000, 3:00:00 AM4/27/00
to

Hi
The following is some VBScript - I am looking for the Java equivalent please


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>


Thomas B. Passin

unread,
May 1, 2000, 3:00:00 AM5/1/00
to

Peter Byers wrote in message <8e8lu8$qv...@news.netobjects.com>...

>
>Hi
> The following is some VBScript - I am looking for the Java
equivalent please
>
>
>set shell = CreateObject("WScript.Shell")
>shell.Run "anything.exe"
>shell.Run "anything.hlp"
>shell.Run "anything.txt"
>shell.Run "anything.doc"
>

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

Peter Byers

unread,
May 3, 2000, 3:00:00 AM5/3/00
to
Hi Tom
The above VBScript - does work - it gives a severe warning and asks if you are sure.

BUT

If you say "Yes OK" it goes on and does it

Pete


Thomas B. Passin

unread,
May 5, 2000, 3:00:00 AM5/5/00
to
Peter,

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>...

Peter Byers

unread,
May 7, 2000, 3:00:00 AM5/7/00
to

Tom
It was IE - Netscape wont use VB script

Code was both local and from web

Pete

0 new messages