Solved

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

Posted on 1997-11-23
12
403 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
Comment Utility
<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
Comment Utility
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
Comment Utility
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
 
LVL 2

Expert Comment

by:rigansen
Comment Utility
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
Comment Utility
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
Comment Utility
> 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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 1

Author Comment

by:arnaudg
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…

771 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now