Windows - Running a system command from within HTML

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • MoshiachNow

    Windows - Running a system command from within HTML

    HI,

    I work locally on a Windows machine,no servers !
    I display a big HTML log ,that includes 2 frames of JS.
    At the end of my HTML file,after 2 frames are build,I want to run a
    Windows system command (unzip some file to some destination),so that my
    links from HTML will work (unzipped files will be targets for my
    links).

    How do I get JS (or else) to run the above system command?
    my solution ,whatever will be,MUST be activated by double clicking a
    HTML file (be part of it ) .

    Thanks

  • Harlan Messinger

    #2
    Re: Windows - Running a system command from within HTML

    MoshiachNow wrote:
    HI,
    >
    I work locally on a Windows machine,no servers !
    I display a big HTML log ,that includes 2 frames of JS.
    At the end of my HTML file,after 2 frames are build,I want to run a
    Windows system command (unzip some file to some destination),so that my
    links from HTML will work (unzipped files will be targets for my
    links).
    >
    How do I get JS (or else) to run the above system command?
    my solution ,whatever will be,MUST be activated by double clicking a
    HTML file (be part of it ) .
    So many people want to know how to run system processes on their own
    computers using HTML pages! To me, that's like using Excel for word
    processing. System automation is done with batch files or system
    programming. In any event, your question is off-topic in c.i.w.a.h,
    since your question isn't about authoring HTML for the Web. You might
    try alt.html or, more likely, one of the Microsoft "inetexplor er"
    newsgroups.

    Comment

    • Andy Dingley

      #3
      Re: Windows - Running a system command from within HTML


      MoshiachNow wrote:

      I display a big HTML log ,that includes 2 frames of JS.
      At the end of my HTML file,after 2 frames are build,I want to run a
      Windows system command (unzip some file to some destination),so that my
      links from HTML will work (unzipped files will be targets for my
      links).
      HTML isn't a programming language. Attempts to use it as one usually
      end badly.
      HTML broswsers also have significant effort in stopping you running
      these types of commands (the security hazards are obvious).

      Although it might be possible to do what you ask (or some of it), it
      would be awkward, restricted and fragile -- change any detail of the
      system and the whole lot falls apart.

      Find a real solution - this probably involves a server-side scripting
      language. It's not hard to run a server locally if you need one (Apache
      works fine under Windows).

      If you really can't do it server-side, run a local scripting language
      command first, such as Perl or Python.

      Comment

      Working...