Results 1 to 6 of 6

Thread: How to run a Program By Clicking a link?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 1999
    Posts
    93
    I have programmed VB and used asp pages. But I cannot sit down and write an asp page. So I need specific details on how to write a script to run a program.

    Here is what I have done. I have written 30 .bat files that install printers on a persons machine. I have created links to these .bat files. When a person clicks on the link a message box pops up and says "do you want to save this file or run it?" The person clicks run and it installs the printer.

    I want to click on the link and it automatically run the .bat file. I was thinking the link should be a script that says call "Link to .bat file".

    Thanks
    Brandon

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    For security reasons you cannot normally automatically execute files through a web browser. If you could, someone could do something like use a http redirect to the .exe for BO2K or Netbus or something.

    Josh
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 1999
    Posts
    93
    I know you guys know more about it than I do, but I know that you can run vb script from a web page. Why couldn't that script call an executable.

    Thanks
    Brandon

  4. #4
    Addicted Member
    Join Date
    Jan 2001
    Location
    Little Rock, Ar
    Posts
    151

    Lightbulb

    There's got to be a way to do it. MSN gaming zone is an example...

    there is 2 ways to log on
    click on a link to a game.

    or run the zone.exe file in you're program files then click file>log on as

    both of them bring up the logon screen and friends window.

    I don't know how to do it, I'm just saying its not imposible

  5. #5
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    If there is a way to do it, it will get patched, as people will use it to put trojans on others' computers. I believe people have gotten trojans from MSN gaming though.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  6. #6
    Lively Member Brandito's Avatar
    Join Date
    Nov 2000
    Location
    Here, There, Every Where!
    Posts
    106

    The Answer

    ... I have your answer.

    Dispite popular belief it is possible to do what you want. Back in the day MS would add objects to enhance your browser to "super human levels". They stopped doing that because people were taking advantage of them. You can still get them to code with though.

    The one you are looking for is called...
    TMPK (if memory serves me correctly)

    Becareful though... it is dangerous!
    I posted a big exploit on it a few years ago.
    That's why I wont take part in helping...

    C Ya,
    Brandito

Posting Permissions

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



Click Here to Expand Forum to Full Width