Help with mapped drives ?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Inphluence
Beginner
Beginner
Posts: 3
Joined: Tue Nov 24, 2009 11:11 pm

Help with mapped drives ?

Post by Inphluence »

I can map to files on my network drive by telling it what letter to go to like this

aI("text=DVDs;url=File:///G:/Movies/Dvds;target=new");

...but !

I can't view it from another computer without pre-mapping the same drive letter on that machine.

Isn't there a way I can use the server name somehow? I've tried different things so far but none have worked.

i.e.

aI("text=DVDs;url=File:///SERVERNAME/Movies/Dvds;target=new");

Help?
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Re: Help with mapped drives ?

Post by Andy »

The only way you'll be able to do this is if you use ../ and ./ to go to current and backwards folders - this eliminates the need for the servername or drive letter

To see it work, Take a copy of the menu download and in the menu_data.js file add this to the main menu:

Code: Select all

aI("text=Test;url=./extras/listbased_menu/index.html");
This will link to the listbased sample in the extras folder.

To get back to where you were you could add this to your listbased menu (index.html):

Code: Select all

<li><a href="../../index.htm">Back to Menu Page</a></li>
This is perhaps the only time I would recommend using the ./ and ../ methods - the only caveat is that you must keep track of where you are otherwise you may end up linking to a non existent file
beefeater
Beginner
Beginner
Posts: 6
Joined: Tue Jan 06, 2009 10:25 pm

Re: Help with mapped drives ?

Post by beefeater »

I think you're on the right track. This is what works for me.

Code: Select all

aI("text=Test1;url=file://SERVERNAME/ShareName/filename.pdf")
Or to open a directory of files in a file explorer window...

Code: Select all

aI("text=Test2;url=file://SERVERNAME/ShareName/Sub-DirectoryName/")
Post Reply