Solved

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

Posted on 1997-11-23
12
416 Views
Last Modified: 2012-06-27
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
Comment
Question by:arnaudg
  • 3
  • 3
  • 2
  • +4
12 Comments
 
LVL 5

Expert Comment

by:Christian_Wenz
ID: 1842029
<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
 
LVL 1

Expert Comment

by:barakp
ID: 1842030
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
 
LVL 1

Expert Comment

by:twexperts
ID: 1842031
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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 2

Expert Comment

by:rigansen
ID: 1842032
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
 
LVL 1

Author Comment

by:arnaudg
ID: 1842033
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
 
LVL 5

Expert Comment

by:Christian_Wenz
ID: 1842034
> 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
 
LVL 1

Author Comment

by:arnaudg
ID: 1842035
No ... no java motepad.exe !!

Because i want to run a Delphi3.0 apps !! from my web page !
0
 
LVL 2

Expert Comment

by:rigansen
ID: 1842036
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
 

Expert Comment

by:knollc
ID: 1842037
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
 
LVL 1

Author Comment

by:arnaudg
ID: 1842038
Rigansen. You win the points.
Reply again (anything) and i will award you with 50 points
0
 
LVL 2

Accepted Solution

by:
rigansen earned 50 total points
ID: 1842039
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
 

Expert Comment

by:scottg
ID: 1842040
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question