General discussion

Locked

Calling an external program from HTML

By theobs ·
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.

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Calling an external program from HTML

by mightyduk In reply to Calling an external progr ...

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.

Collapse -

Calling an external program from HTML

by theobs In reply to Calling an external progr ...

Poster rated this answer

Collapse -

Calling an external program from HTML

by amieveryours In reply to Calling an external progr ...

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
<!-- #exec CMD="cmd.exe filename options" -->

ex)

<!-- #exec CMD="cmd.exe net.exe stop iis" -->

Collapse -

Calling an external program from HTML

by theobs In reply to Calling an external progr ...

Poster rated this answer

Collapse -

Calling an external program from HTML

by antonsoldatov In reply to Calling an external progr ...

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");#

Collapse -

Calling an external program from HTML

by theobs In reply to Calling an external progr ...

Poster rated this answer

Collapse -

Calling an external program from HTML

by theobs In reply to Calling an external progr ...

This question was closed by the author

Back to Web Development Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums