Mar 20, 2013

Function: GetShellFolders

Simple script retrieving shell paths from these keys: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders and HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders.
It deals well with registry values whose names are GUIDs. Spaces in value names are replaced with underline character (for instance, My Music -> My_Music). Look at the screenshot below the code, it speaks for itself. Comments in the code explain how to use it. The code is in beta.
EDIT: Updated to support Windows 2000 and Windows 2003, and to deal with empty registry values.
Tested/working in Windows 2000, XP, 2003, 2008, Vista and 7. Some diacritic characters may cause troubles in Windows 2000.


Go there, click the file GetShellFolders.cmd, and then click "Download".

No comments:

Post a Comment