HTML link to a file in the users PC

Clone
October 16, 2006 at 08:26:53
Specs: Windows XP SP2, P4 3.4Ghz 1GB Ram
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


See More: HTML link to a file in the users PC

Report •


#1
October 16, 2006 at 08:52:00
hi, take a look at this thread

---
Fubar


Report •

#2
October 16, 2006 at 08:55:14
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


Report •

#3
October 16, 2006 at 08:59:40
Response #4 is not related to that thread 0_o

---
Fubar


Report •

Related Solutions

#4
October 16, 2006 at 12:24:25
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:

Clicking here

Thanks,
REMGU


Report •

#5
October 16, 2006 at 13:00:27
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


Report •

#6
October 16, 2006 at 13:10:37
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


Report •

#7
October 16, 2006 at 14:46:47
Your post made me do the test Michael, I put:

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


Report •

#8
October 16, 2006 at 14:59:57
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


Report •

#9
October 16, 2006 at 17:48:18
Yeah, I'll look at it some more. At least I now know the syntax.

Thank you.

Thanks,
REMGU


Report •


Ask Question