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

x
?
Solved

How to launch a local application through the browser?

Posted on 1997-10-29
8
Medium Priority
?
191 Views
Last Modified: 2008-03-03
I have install some application onto my local hard disk and
I would like to be able to launch this application by just
clicking on the hyperlink from the html page.

eg. <a href="file://C:/win95/notepad.exe">Notepad</a> executable application.
Using this method, I have actually popup the save as dialog
asking me to save this file. But I want to launch it, so I can do some typing.

Any help will be appreciated.
0
Comment
Question by:wsm
[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
  • 4
  • 3
8 Comments
 
LVL 6

Accepted Solution

by:
Holger101497 earned 600 total points
ID: 1841121
YES! There is a way of doing it!
You have to use it with some care, though... Netscape only allows for one treatment of a specific filetype, so every *.exe file you click on some server will be treated the same way!

You need a little workaround here:
Netscape will only let you save an application or choose a viewer for it. Now which file can you use to "view" an application?
The easiest way is a batch file that only contains two characters: "%1" !!! (to be continued)

0
 
LVL 6

Expert Comment

by:Holger101497
ID: 1841122
After that, you go to Options | General preferences |Helpers and choose the filetype application/octet-stream with the extension *.exe. Choose "Launch application" at the bottom of the screen and enter the name of your batch-file. Netscape will pass the name of the link to the batchfile and the batch file will execute it (try it, it worked on my machine).

I think that answers your question, but once again: CAREFUL! You should definitely put some checks into your batch file. "%1" is a very nice and short batch file and maybe you would be annoyed by always having to confirm if you really want to open the application, BUT anybody who is mean could get access to your harddisk that way and could probably figure out a way to delete data!! (Links can even be "disguised" by JavaScript!!
0
 
LVL 6

Expert Comment

by:Holger101497
ID: 1841123
My answer was tested in Netscape 3 Gold under Windows NT (at university).
In Communicator, this seems to cause a problem, because it does not allow you to modify the way *.exe files are handled - maybe because of the dangers I mentioned above.

Then I changed something in Netscape 3 and all of a sudden Communicator asked me if I want to open or save exe-files (which is the perfect solution). I am not sure what it was I changed... Do you look for this as a general solution to launch applications or just for a few? One way to go (also a lot safer) is to create a batch file for Notepad exclusively and just set Communicator to execute batch-files...

I'll try to find out more about that IF you use Communicator... If you use Communicator - do you still have Netscape 3 installed?
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 5

Expert Comment

by:Christian_Wenz
ID: 1841124
another possibility, but more complicated, is to define a new file extension, associate a program with it (in this case: NOTEPAD) and there you go.
Sounds simple but it's nice trick (I needed it for a qiute similar task, just much mroe complicated)
0
 
LVL 6

Expert Comment

by:Holger101497
ID: 1841125
True. If you only need it for one specific program, you can do that as well... If you want a web-page to launch Notepad, Wordpad, Paintbrush, Telnet and whatever, you need quite a few extensions...
0
 

Expert Comment

by:scottg
ID: 1841126
If your still interested, Take a look at the following URL. Its an ActiveX control that does exactly this, very flexible too.
Unfortunately it is not free though.

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

E-Mail me for more information.  scottg@niagara.com


0
 

Expert Comment

by:scottg
ID: 1841127
If your still interested, Take a look at the following URL. Its an ActiveX control that does exactly this, very flexible too.
Unfortunately it is not free though.

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

E-Mail me for more information.  scottg@niagara.com


0
 

Expert Comment

by:scottg
ID: 1841128
Sorry for the double comment add above.  Damn button - it went insane on me.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

721 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