Solved

How to launch a local application through the browser?

Posted on 1997-10-29
8
178 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
  • 4
  • 3
8 Comments
 
LVL 6

Accepted Solution

by:
Holger101497 earned 200 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
USE HTML to redirect a webpage to a local Xcel file. 2 39
HTML code not showing slider block in Magento 2 29
PHP Undefined Index in HTML Form? 2 31
WordPress Themes 10 34
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…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…

914 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

14 Experts available now in Live!

Get 1:1 Help Now