General discussion

  • Creator
    Topic
  • #2074171

    Calling an external program from HTML

    Locked

    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.

All Comments

  • Author
    Replies
    • #3788979

      Calling an external program from HTML

      by mightyduk ·

      In reply to Calling an external program from HTML

      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.

    • #3788789

      Calling an external program from HTML

      by amieveryours ·

      In reply to Calling an external program from HTML

      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)

    • #3790025

      Calling an external program from HTML

      by antonsoldatov ·

      In reply to Calling an external program from HTML

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

    • #3892922

      Calling an external program from HTML

      by theobs ·

      In reply to Calling an external program from HTML

      This question was closed by the author

Viewing 3 reply threads