Relative Path help. I am writing a simple HTML site and need help.?

jack

New member
Unless You save your directory that you wish to link to on the web and then use a normal "http://..."
statement to link to it i cant see a way of doing it
 
I am using HTML to link to a network drive. So here is a line of code that I am using to link to a certain folder on the Z: Drive.
<a href="file:///Z:/East/Folder1/folder2">East Folder 2</a>
This works fine and I am able to link to that location no problem.
But I realized that not everyone here at the office has the network drive mapped the same way. Some people have Z some people have W.
I thought to use a relative path. Which I assume was like this.
ertain folder on the Z: Drive.
<a href="/East/Folder1/folder2">East Folder 2</a>
But this doesn't seem to work. I assume I am doing something wrong, but can't find anything. I searched and found to use either a
/
or a double
//
but none seem to work.
Any help would be appreciated.
Michael, Thank you this actually works great. But I have another question. Why would this work in IE but not in firefox?
 
Unless You save your directory that you wish to link to on the web and then use a normal "http://..."
statement to link to it i cant see a way of doing it
 
The file: directive is fine, but you need to find the 'real' name of the drive. As you say, different people can use different letters to map a network drive, so you must specify the real name.

Go to a command prompt and find the remote name the drive maps to (it is one of the 'net' commands - try 'net help' as a start); or look in Explorer - right-click the drive and the properties should give the full path name of the drive the letter is mapped to. Use that name rather than the Z: which is just a shortcut.

You can check it out by typing this name into explorer, and it should show your Z: drive.
 
Back
Top