how do i create a link to an application on my pc in a html page

I'm trying to create a html page that has links to programs i.e Dreamweaver or Photoshop.  When I click the link, I'm prompted to open or save the file instead of the application opening as it would if I opened it from the start menu or a shortcut
dct117Asked:
Who is Participating?
 
ViRoguesCommented:
Sorry, but for security reasons, this is not allowed by the browser.
0
 
ViRoguesCommented:
I have an idea of how this can be done. Gimme a minute to test it.
0
 
Nenad RajsicCommented:
it work for me
just create a link and open it in IE for example. when you click on a link you will be asked if you want to run it and one more sucurity box but it works well. just tested it


<a href="C:\Program Files\Mozilla Firefox\firefox.exe">link to Firefox</a>

Open in new window

0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

 
Nenad RajsicCommented:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<p><a href="C:\Program Files\Mozilla Firefox\firefox.exe">link to Firefox</a></p>
<p>&nbsp;</p>
</body>
</html>

Open in new window

0
 
dct117Author Commented:
I've made it that far, but is there a way to keep from being asked if I want to "Run or Save" the file?
0
 
Nenad RajsicCommented:
no because you are effectively downloading files and if it was run automatically every PC in the world would be infected with something.
0
 
dct117Author Commented:
Any suggestions for my issue?  I may also add, this html pagw is running locally.  I'm trying to create my own version of a toolbar or 'Favorites' page that has my most used programs and links on the web.  I figure I'm more productive if I have everything in focus instead of having to go back to the start menu.
0
 
Nenad RajsicCommented:
it's just not possible to run applications in your browser without any security prompts for obvious reasons.

this might be a better solution for you: http://www.sharewareconnection.com/favorite-shortcuts.htm
0
 
scrathcyboyCommented:
There is some confusion here.  When the HTML file is on your hard disk, it is local, so YES, it can access the files on your hard disk.  But when the HTML file is on the WWWeb, no it does NOT have permission to access ANY files on the user's local hard disk.  This is a safety precaution to stop web sites from totally destroying all data on your hard drive.  SO if it is on your local disk, the HTML file really does nothing more than an icon can do on the desktop.  If the HTML file in on a web server, this will not work, NEVER work.
0
 
dct117Author Commented:
scrathcyboy,

Yes, the HTML page is local to my computer, and I viewed this scenario  as you did, the links do nothing more than act as icons on a desktop.  Havings said that, I can't get it to work
0
 
scrathcyboyCommented:
A link to a file on a hard drive has a special series of slashes, etc -- try this, copy exactly except for the names and paths, which of course you change --  note 3 forward slashes --

"file:///C:/your-folder/filename.exe"

You will still have to set your browser permissions to run executable files, and that of course opens up a massive security hole when you are browsing the web (in fact some browsers won't do it at all) -- so if you are going to use a browser for browsing your hard drive, it should be one dedicated ONLY to that task, and now used for web browsing.
0
 
scrathcyboyCommented:
sorry, NOT used for web browsing
0
 
dct117Author Commented:
scrathcyboy,

I'm not sure what you mean by, "if you are going to use a browser for browsing your hard drive, it should be one dedicated ONLY to that task, and now used for web browsing."
0
 
scrathcyboyCommented:
If you are setting up links to files on your hard drive in an HTML page, then you are using a web browser to get to those links, right?  If not, what are you trying to do?
0
 
dct117Author Commented:
Yes I am using a web browser.
0
 
scrathcyboyCommented:
then reread this post again -- 04/25/10 12:14 PM, ID: 32064420 -- (corrected) NOT used for web browsing.
0
 
scrathcyboyCommented:
Besides, almost all browsers will not run an EXE file, so you can't really do what you want.  They will try to save the EXE as a file -- that is the NORMAL handling of web browsers.
0
 
dct117Author Commented:
I'm not sure how to close out the question as what I'm trying to accomplish is not possible? How would I disperse points?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.