...

View Full Version : Creating links to a network path



rishid
04-24-2006, 01:39 PM
Hi,

Trying to make some links on my internal company page to some network resources.

Kinda confusing question, but here goes.
1) Should I put file:// in front of the network links?
ex. file:////server1/folder/file.pdf

It seems that IE6 automatically appends the file:// but if I urlencode the path it doesn't.
URL Encoded Path being --> %2F%2Fserver1%2Ffolder%2Ffile%2Epdf

And also should I use URLEncodedFormat for the links.. is it neccessary?

Page will only be viewed on IE6 if that changes anything.

Thanks for any help.

RishiD

Arbitrator
04-24-2006, 01:55 PM
I believe the correct protocol for local file retrieval is file:///C:\Documents and Settings\All Users\. At least on Windows anyway. I can't say exactly how it'll work when networked computers try to retrieve data though. Best bet is to try it, with an image for example, and find out.

You shouldn't need to bother URL encoding the addresses. When the browser reads them the URLs will be either read the way they are or if the browser wants them encoded they will be encoded automatically. For example, this should work:

<img src="file:///C:\Documents and Settings\All Users\">
... and should be converted automatically to something like ...
<img src="file:///C:\Documents%20and%20Settings\All Users\">



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum