rulec444

rulec444

  • NA
  • 81
  • 0

direct users to folder with space in name

Jan 27 2005 10:40 AM
After searching this site, I've been unsuccessful at finding a solution to my issue. From a javascript menu, I am trying to allow my user to click on a menu item and have them directed to a folder on a shared drive. However, I cannot get this to work because the folder name has spaces in it. In the addmenu portion of the code, this is what I have: addmenu(menu=["docs", ,,120,1,"",style1,,"left",effect,,,,,,,,,,,, ,"Documentation",href="\\X:\\Target Folder\\2nd Target Folder\\Databases",,,1 ]) I've tried: 1. referencing the spaces with an underscore or an ampersand 2. Putting quotes around the folder name (w/ and w/o a slash before the quotes) 3. prefacing the space with a \ 4. putting brackets and single quotes around the folder name 5. referencing the protocol "file" before the directory, like this: ,"Documentation",href="file:\\X:\\Target Folder\\2nd Target Folder\\Databases",,,1 But, none of these will open the folder since Target Folder is not one word. When I try this, it just tries to open a folder named "Target" on X and states the Page Could Not Be Found. Unfortunately, the easy fix would just be to eleminate the spaces from the name of the folder but I can't since other's already have desktop links to it. Any ideas on how I can fix this? Thanks.

Answers (1)