Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 444
  • Last Modified:

How do i launch an .EXE from a web page ?

If i make a button on a web page.
Which tag (or CGI or JAVA) must i include to launch a .EXE program on the computer (client) ?
For use in an Intranet or Internet solution.
Windows95 NT Netscpae  IExplorer
0
arnaudg
Asked:
arnaudg
  • 3
  • 3
  • 2
  • +4
1 Solution
 
Christian_WenzCommented:
<A HREF="the_executable.exe"><IMG SRC="imagefile.gif" BORDER=0></A>

A box pops up, asking the user to save or to execute the file.

Please drop me a comment if you have further questions.
0
 
barakpCommented:
You cannot launch a file which is on the clients computer to the most of my knowledge. If this file is on the server then just put a link to it and you have to config Netscape and Explorer so it will run the EXE file instead of downloading it.
0
 
twexpertsCommented:
Due to security reasons, this cannot be done, unless your users do want you to run it, and I would say that 98% of internet users will not run something they have browsed to. Imagine some malicious person desides to run the program FormatHD on the clients computer!!!!
However in retrospect, You can use ActiveX to run client side programs, Microsoft does this with their Zone web (http://www.zone.com) The user d/l's the software and the zone calls it for whatever the user want's to use. The user does have to have ActiveX security set to at least 'notify before running ActiveX commands'. And of course MS only let's it run on IE versions, though I think it would work just find on NN.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
rigansenCommented:
thre's another way of doing this but it works with MIME types, leave a comment if you want to know how!!

it isn't easy but it works.

what does the .EXE do ??
what do you need it for??


rigansen.
0
 
arnaudgAuthor Commented:
Yes i want !! (rigansen.)
Exemple:
a netsurfer comes in my page.
He clicks (with his mouse) on a button called "notepad" on the page. This action will open on his PC NOTEPAD.EXE
0
 
Christian_WenzCommented:
> He clicks (with his mouse) on a button called "notepad" on the
> page. This action will open on his PC NOTEPAD.EXE
oh, well - you might consider offering a Java notepad instead...
0
 
arnaudgAuthor Commented:
No ... no java motepad.exe !!

Because i want to run a Delphi3.0 apps !! from my web page !
0
 
rigansenCommented:
ok, here we go...

NOTE:This is *only* useful if you have access to the browser on the client or if the client can do it by her/himself!!

In Netscape:
What you have to do is access Options - General Preferences - Helpers, you'll find all the MIME types that the browser recognizes, you can Edit an existing one or Create a new type.  If you want to assign a .TXT to Notepad.exe (as you mentioned earlier) you'll have to select "Launch the Application" and click on the "Browse" button to select the application you want to launch.  Once done, whenever a click is done on an anchor like this:

<a href="anyfile.txt">Load Notepad</a>

the browser will launch Notepad.exe and the "anyfile.txt" file will be loaded.

if you need any help... let me know.
or If this happens to be what you want, give me the chance to post it as an answer... ok!?

rigansen.
0
 
knollcCommented:
2 Options I can think of:

1)  ActiveX control which just has a button in it.  When you click the button, you system("notepad.exe") and it will search the path for notepad.exe and launch it.  this can be easily done in VB5.

2) href="file://<path to windows directory>/notepad.exe" will make a href to notepad.exe.  It will, however, ask the user to open or save it to disk.  So they will have to consiously say 'open'.  This is a SECURITY restriction and I can't imagine that you would want it any other way.  The problem with this solution is that you have to know the path to notepad.exe, which might be different on different computers.  

The nice thing about the ActiveX control is that you could update it to alow users to select the app they wish to run (maybe from a dropdown list) and pressing the 'Launch' button will kick off the requested app (maybe you want to run mspaint.exe too).

Hope this helps

-Chris

0
 
arnaudgAuthor Commented:
Rigansen. You win the points.
Reply again (anything) and i will award you with 50 points
0
 
rigansenCommented:
ok, here we go again with the right answer, whatelse !?

NOTE:This is *only* useful if you have access to the browser on the client or if the client can do it by her/himself!!

In Netscape:
What you have to do is access Options - General Preferences - Helpers, you'll find all the MIME types that the browser recognizes, you can Edit an existing one or Create a new type. If you want to assign a .TXT to Notepad.exe (as you mentioned earlier) you'll have to select "Launch the Application" and click on the "Browse" button to select the application you want to launch. Once done, whenever a click is done on an anchor like this:

<a href="anyfile.txt">Load Notepad</a>

the browser will launch Notepad.exe and the "anyfile.txt" file will be loaded.

good luck and Merry Xmas!!

rigansen.
0
 
scottgCommented:
There's a full commercial solution that runs everything from programs to wizards both locally and over a network(with SMB) at the following URL.

http://www.particle.net/IntraLaunch/

Its an ActiveX control for IE and possibly Netscape 3.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 3
  • 2
  • +4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now