Special folders

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
pmoore
Posts: 28
Joined: 27 May 2008 13:50

Special folders

Post 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.

Pagat
Posts: 306
Joined: 09 Oct 2007 21:23
Location: Austria

Re: Special folders

Post 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

pmoore
Posts: 28
Joined: 27 May 2008 13:50

Re: Special folders

Post 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.

fishgod
Posts: 231
Joined: 03 Feb 2008 00:40
Location: Sankt Augustin (near Bonn), Germany

Re: Special folders

Post 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.
Operating System: Win10 x64 / Win11 x64 / almost allways newest XY-beta
totally XYscripting-addicted

Post Reply