Solved

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

Posted on 1997-11-23
12
426 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

 
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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

636 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