Call local exe with java or javasript -

They have: 27 posts

Joined: Mar 1999

I need to have one link on an intranet site point to an executable that is on everyones hardrive. it was suggested that I

"... need to use a Java applet which requests the privilege from the user to run an executable. This time the user would click "remember this decision." That way on the next try the program should simply run."

I've been browsing java sites most of the day trying to find an applet that can do this. Any suggestions on a) whether an applet is the way to go and where to get it, or b) is their a totally different way to solve my problem.
thanks
jason

John Pollock's picture

He has: 628 posts

Joined: Mar 1999

If you can get everyone to put the file in the same location on their hard drive you could probably just write a normal link pointing to the file.
<A HREF="file:///c

John Pollock's picture

He has: 628 posts

Joined: Mar 1999

I knew about the open/save dialouge- I should have mentioned it. The program runs if you choose "open" but this is distracting for the viewer.

A Java Applet may be what you need, hopefully someone here is good with regular Java and can help you out more.

------------------
John Pollock
www.pageresource.com
www.javascriptcity.com

They have: 2,390 posts

Joined: Nov 1998

I have tried that before and ended up with a 'save as/open' option.
JP

------------------
The Webmaster Promotion and Resource Site
www.what-next.com
The NEXT step in Designing and Promoting your Website

They have: 27 posts

Joined: Mar 1999

All computers have the exe in the same directory (and all computers use IE4.0). JP Stone is correct, though, the open/save box does pop up. I've called some microsoft employees about IE; from the standpoint of IE programmers, the open/save dialog box is hard coded into IE for security reasons. Thats why I thought an applet might be able to do it. I'm too new to java to be able to write it myself.
Jason

[This message has been edited by jwhitener (edited May 12, 1999).]

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.