Results 1 to 3 of 3

Thread: Activating Command Prompt script through HTML form

  1. #1
    Join Date
    Sep 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Activating Command Prompt script through HTML form

    Good day,

    I am trying to integrate my batch file into a basic web based form in HTML. Now, my page is not server side, does not use php, just plain html. First, I am wondering if the command prompt within Windows can be opened and run a small script within HTML forms?

    If its possible, I am trying to integrate my current batch file which has the following code:

    Code:
     
    @echo off
    grep --mmap -w %1 d:\int\* |sort /+20 > %1.sl
    "c:\program files\windows nt\accessories\wordpad.exe" %1.sl
    del %1.sl
    In big, this is a script that searches information inputted ( %1 ) within specified files and then prompts the information found in WordPad and then deletes the temp file when you close the WordPad window.

    If the above is possible to insert within an HTML form either with JavaScript’s or other non-server side scripting, I would be interested to learn.

    Thank you for your help towards this problem.

  2. #2
    Join Date
    Aug 2006
    Posts
    239
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Basically that's impossible: it would be severe breach of security a web browser would allow "remote" execution of standalone program (read: until recently IE had that, but after several breakups and DoS, they issued a fix for that)

    You can however build ActiveX control that would embed wordpad into IE (not sure if FF woule ever allow to do that)...

  3. #3
    Join Date
    Sep 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you for your reply.

    I wasn't sure if it was possible or not, well, I was hoping that it would be possible to do so :-)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •