Page 1 of 1

Special folders

Posted: 12 Apr 2009 13:48
by pmoore
I'm sure this is a dumb question, but:

How can I set a "Go to" location (in the address bar, or a Catalog entry, or whatever) for one of Windows' "Special Folders" (Desktop, Pictures, Downloads, etc)? Vista has a whole load more of these than XP used to, and I'm getting fed up of navigating through Users\<me>\Whatever. I know I could use the actual directory name, but I'd rather use something a bit more portable.

I tried searching the forum and wiki, but didn't find much ("Special folder" isn't a particularly good search term :-()

Thanks,
Paul.

Re: Special folders

Posted: 12 Apr 2009 19:59
by Pagat
Hello,

What you are looking for are "Environment Variables". Here is the wiki page:

http://88.191.26.34/XYwiki/index.php/En ... _Variables

Re: Special folders

Posted: 12 Apr 2009 22:51
by pmoore
Unfortunately, there aren't environment variables for all the various special folders (e.g. My Music, My Pictures, etc). But it helps for some, certainly.

Thanks,
Paul.

Re: Special folders

Posted: 12 Apr 2009 23:10
by fishgod
You coul'd create entries in the Catalog using the USERPROFILE environment-variable.

For example:

Code: Select all

::Goto("%USERPROFILE%\Eigene Dateien\")
That makes it a bit more portable instead of using the absolute path.