Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 1997-11-23
12
Medium Priority
?
436 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
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.

 
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 100 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article discusses four methods for overlaying images in a container on a web page
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…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

670 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