Run DOS commands from HTML

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

    #1

    Run DOS commands from HTML

    Hello all,
    I was wondering if its possible to run a DOS command from the html page.
    I would like the users to click on a link to launch the task manager.
    Something along these lines....
    =============== =============== =============== =============== =============== =
    <HTML>
    <body>
    <a href = 'cmd /c taskmgr'> Click here for Task Manager </a>
    </body>
    </HTML>
    =============== =============== =============== =============== =============== =

    Is this possible?
    Its no huge security issue.

    Thanks,
    Prabh
  • Phillip Hofmeister

    #2
    Re: Run DOS commands from HTML

    Prabh wrote:
    [color=blue]
    > I was wondering if its possible to run a DOS command from the html page.[/color]

    As there are loads of operating systems out there that have nothing to do
    with DOS: no. And it quite certainly wouldn't be something any browser
    should allow, or would you like to click on a link labeled "Home" whereas
    in reality it executes the command "format c:"?
    [color=blue]
    > I would like the users to click on a link to launch the task manager.
    > Something along these lines....
    >
    > <HTML>
    > <body>
    > <a href = 'cmd /c taskmgr'> Click here for Task Manager </a>
    > </body>
    > </HTML>
    > Is this possible?[/color]

    Executing local commands from a website is a rather bad idea, but I gather
    that you want to do this from a page stored only on your computer for your
    personal use. In that case it might be possible to do that with Internet
    Explorer, you'd just have to experiment what needs to be put into the <a
    href>.

    But you shouldn't use it on a page that is accesible online. And quite why
    this could be useful also escapes me.
    [color=blue]
    > Its no huge security issue.[/color]
    It is. See above.

    Comment

    • Philipp Lenssen

      #3
      Re: Run DOS commands from HTML

      In article <e7774537.03082 51109.511a88a3@ posting.google. com>,
      Prab_kar@hotmai l.com says...[color=blue]
      >
      > I was wondering if its possible to run a DOS command from the html page.
      > I would like the users to click on a link to launch the task manager.
      >[/color]

      With certain versions of Internet Explorer, yes, this is possible. In
      fact, it was a big security issue, and that's why it was patched. It
      even worked in Outlook, by sending HTML mails. The preferred way of
      doing what you want should be to let the user download a batch-file, and
      to politely ask them to execute it. In your case, the best is to just
      explain to your users how they can launch the task manager manually. It
      will save you a lot of trouble because there's no other solution that
      works well.

      Comment

      • Alan J. Flavell

        #4
        Re: Run DOS commands from HTML

        On Tue, Aug 26, Ken Williams inscribed on the eternal scroll:
        [color=blue]
        > theres a commerical solution available.[/color]

        I'm sure that's going to make everything alright, then... (not)
        [color=blue]
        > IntraLaunch is an ActiveX control primarily designed for corporate Intranets[/color]

        Perhaps the "www" in the name of this group is invisible to some
        contributors.

        In any case, I've often found it beneficial to stick to well-tried
        WWW-style solutions even when working for an "intranet".

        Comment

        • Disco

          #5
          Re: Run DOS commands from HTML

          Prabh wrote:[color=blue]
          > Hello all,
          > I was wondering if its possible to run a DOS command from the html
          > page.[/color]
          Yes. But I suppose it depends on what you are doing this for..

          I have done this in a controlled intranet environment via batch files.

          eg. the url is something like this...

          <a href="file://h:\companyapps\ standard.bat">R un the standard stuff</a>
          ....and the the bat file I can put anything.

          The user knew that it was a controlled environment, and that the pages that
          we built only contained stuff that they knew they could trust.

          On the web however it is different. No body will trust a public web site to
          run things like that over the web.






          Comment

          • CJM

            #6
            Re: Run DOS commands from HTML


            "Alan J. Flavell" <flavell@mail.c ern.ch> wrote in message
            news:Pine.LNX.4 .53.03082610571 60.5468@lxplus0 86.cern.ch...[color=blue]
            > On Tue, Aug 26, Ken Williams inscribed on the eternal scroll:[/color]
            [color=blue]
            > Perhaps the "www" in the name of this group is invisible to some
            > contributors.[/color]

            No, but until we have a comp.infosystem s.intranet.auth oring.html group we
            shall persist in trying to find answers in other suitable groups.

            There is comp.infosystem s.intranet NG, but I'm afraid it has a rather broad
            remit, it's not as well supported at this one, and - lets face it - it
            doesnt have venerable sages such as yourself, Alan.
            [color=blue]
            > In any case, I've often found it beneficial to stick to well-tried
            > WWW-style solutions even when working for an "intranet".[/color]

            True, though my bosses dont seem to agree. 'Blag it now; if things change,
            we'll fix it later'.

            Yet in the same breath they are asking me what it would take to allow key
            customers/suppliers access to certain parts of our intranet and
            applications.

            Chris


            Comment

            • obzerbin
              New Member
              • Sep 2005
              • 2

              #7
              in search of...

              I was able to make this work using...

              <a href = "c:\windows\sys tem32\taskmgr.e xe"> View Task Manager</a>

              Comment

              Working...