Link to home
Start Free TrialLog in
Avatar of dct117
dct117

asked on

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
Avatar of ViRogues
ViRogues
Flag of United States of America image

I have an idea of how this can be done. Gimme a minute to test it.
ASKER CERTIFIED SOLUTION
Avatar of ViRogues
ViRogues
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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


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

Avatar of dct117
dct117

ASKER

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?
no because you are effectively downloading files and if it was run automatically every PC in the world would be infected with something.
Avatar of dct117

ASKER

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.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Avatar of dct117

ASKER

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
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.
sorry, NOT used for web browsing
Avatar of dct117

ASKER

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."
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?
Avatar of dct117

ASKER

Yes I am using a web browser.
then reread this post again -- 04/25/10 12:14 PM, ID: 32064420 -- (corrected) NOT used for web browsing.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dct117

ASKER

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?