Click to See Complete Forum and Search --> : Executable


Tom Korver
03-03-2003, 05:22 AM
Does anybody know what the easiest way is to execute a program on my own harddisk? I am making a html to navigate my own harddisk, but with a html-hyperlink it tries to download it! Do I have to use Javascript or something else? I just want to execute the program! :confused:

AdamGundry
03-03-2003, 12:35 PM
You can't; it's a browser security feature that Javascript cannot activate local programs, except by the browser using them to open a document. For example, if you navigate to a PDF file (via Javascript or plain HTML), Adobe Acrobat will be loaded to display it if installed; the same is true for various other known formats.

You *cannot* execute any file you like!

Adam

jeffmott
03-03-2003, 02:25 PM
Running a Perl/CGI program you can execute external programs or sysem commands, capture the result and return it to the user. You have a choice of exec(), system(), or backticks ``.