Computing.Net > Forums > Web Development > HTML link to a file in the users PC

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

HTML link to a file in the users PC

Reply to Message Icon

Name: remgu
Date: October 16, 2006 at 08:26:53 Pacific
OS: Windows XP SP2
CPU/Ram: P4 3.4Ghz 1GB Ram
Product: Clone
Comment:

Hi, how can I create a hyperlink to a file not on the webserver but on the user's PC? The users of the webpage will all have access to a network drive that contains a certain file that they need to open when clicking on the link. Is there a special character that I need to put at the start of the link in order for the browser to know not to link to the webserver?

Thanks
REMGU

Thanks,
REMGU



Sponsored Link
Ads by Google

Response Number 1
Name: Laler
Date: October 16, 2006 at 08:52:00 Pacific
Reply:

hi, take a look at this thread

---
Fubar


0

Response Number 2
Name: Laler
Date: October 16, 2006 at 08:55:14 Pacific
Reply:

this part:

[a href="file:///C|\server\games.zip"]

so the computer will look at the file directly from their system, no longer using the webserver... but you must sure that location is accessible by each of the computer in the intranet.

-----

You can test calling the file by typing something like file:///C:\path\filename and see if it works, then that's the link... Assuming the file position is exactly the same on your visitor's PC.

---
Fubar


0

Response Number 3
Name: Laler
Date: October 16, 2006 at 08:59:40 Pacific
Reply:

Response #4 is not related to that thread 0_o

---
Fubar


0

Response Number 4
Name: remgu
Date: October 16, 2006 at 12:24:25 Pacific
Reply:

Thanks for the syntax. I have tried it and it works straight from my pc but it doesn't want to work from the sharepoint server that I put it in.

This is what I have:

MSACCESS.exe">Clicking here

Thanks,
REMGU


0

Response Number 5
Name: Michael J (by mjdamato)
Date: October 16, 2006 at 13:00:27 Pacific
Reply:

When yousay that it works from your machine I am assuming that you are running the html file from your machine as well - i.e., not running it through the web server.

I have a feeling that there may be a security constraint to prevent opening a iile on the user's computer directly. This makes sense as someone could just put links to run a program on a users computer and that would not be a good thing.

I tested the parameters above as well as just putting the direct location to the file ("c:\path\file") and neither would open the file. But, the link is correct because I can right-click and save as the files.

Michael J


0

Related Posts

See More



Response Number 6
Name: remgu
Date: October 16, 2006 at 13:10:37 Pacific
Reply:

You are probably right. I've noticed a lot of security constraints in our Sharepoint. I'll just have to look for another way. Thanks for the info.

PS. I meant to have the syntax show above, sorry.

Thanks,
REMGU


0

Response Number 7
Name: Laler
Date: October 16, 2006 at 14:46:47 Pacific
Reply:

Your post made me do the test Michael, I put:

putty.exe">Test

in a .html file, save it, open it, click the link, and it pops the "run" or "save as" box on IE, but only "save as" on Firefox.

But after I upload it to the internet, it didn't work, unclickable :|

---
Fubar


0

Response Number 8
Name: Michael J (by mjdamato)
Date: October 16, 2006 at 14:59:57 Pacific
Reply:

Right, it didn't work for me when the page was uploaded to the internet as a dirtect link, but I was able to right-click save as. But what good is that since you already have the file on your machine?

I'm sure there is a way to do this, but it may require adjusting the security settings.

Michael J


0

Response Number 9
Name: remgu
Date: October 16, 2006 at 17:48:18 Pacific
Reply:

Yeah, I'll look at it some more. At least I now know the syntax.

Thank you.

Thanks,
REMGU


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: HTML link to a file in the users PC

link to files in a different folder www.computing.net/answers/webdevel/link-to-files-in-a-different-folder/2961.html

Delete the file in the Temp folder www.computing.net/answers/webdevel/delete-the-file-in-the-temp-folder/4282.html

export data to Excel file in JSP www.computing.net/answers/webdevel/export-data-to-excel-file-in-jsp/1662.html