Discussion Locked

Calling an external program from HTML

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I want to call PKZip (16-bit version) or WinZip's Command-Line Interface or a batch file calling either of the two above from within an HTML page. Do I use JavaScript or VBScript? What's the code? Any other script language I can use? Target browser is IE5.

7 replies

by mightyduk

JavaScript will not do call any programs for security reasons. VBScript probably does,the user's browser would have to have low security settings or you may need to create an active-X control. As a security-savvy user I would NEVER allow a foreignscript to execute a program on my machine, unless there is a certificate.

by amieveryours

Script does not allow to run outside of any browser. JavaScript nor VBScript will allow you to do that. What you need to do is use the ISAPI filter. The #exec directive of the ISAPI will allow you to execute commands via command line. Before you canuse the #exec, you need to create the SSIEnableCmdDirective entry with type DWORD in the registry of the web server under the key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControl Set\Services\W3SVC\Parameters. the webpage must have the extension of .stm.
The #exec command is

ex)

by antonsoldatov

This applications couldn't be started on
the client side, because of internet security.
But if you want to execute this application on the server, you could use an CGI-script(C\C++ or Perl). #This script should call exec("path");#

This discussion is closed to new replies.