Click to See Complete Forum and Search --> : Execute programs
Tom Korver
03-03-2003, 07:44 AM
I want to execute a program from my hard disk, using HTML and/or Java, but all I can do is make a hyperlink to the file! Then it wants to download it afcourse, and when I say Open from current location I get errors (I assume because it doenst no its working directory). :( Anybody knows a html or java command to just execute a program without any popup screen whatsoever? thx!
khalidali63
03-03-2003, 08:00 AM
Yes I know the Java command to execute an application,but my strong guess is you are looking for JavaScript command,that by the way , does not exist,
There are certain applications which system knows how to run and since browsers works with in the system environments,on providing a link of those app, will open them,other then that you are out of luck here.
Khalid
tomkusnierek
07-02-2003, 09:09 AM
So if there is a way in Java to execute a program, could you somehow run a Java applet or something in JavaScript to execute a program? What would be the code to do that? Is there a better way?
olerag
07-02-2003, 02:25 PM
This is all dependent upon:
- What type of application your running.
- What is the platform/environment.
If your talking about running a java applet, you can check out the desired Java runtime plug-in that will match the version the applet was written to. There are all sorts of "applet" invocation tags/specifications for html to meet your requirements (visit www.sun.java.com for details and search on "applet").
Note that applets work fine on your local machine but must be specially designed to work client/server so browser security implications are not violated (such as server access to databases and/or file I/O).