SRGETFolder()

Syntax

SRGETFolder(WhichFolder-l) Get the Location of the special folder as String
Whichfolder can be following Constant:

Constants: 

#SRGet_DESKTOP Windows desktop-virtual folder that is the root of the name space.
#SRGet_INTERNET Virtual folder that represents the Internet.
#SRGet_PROGRAMS File system directory that contains the user's program groups (which are also file system directories). A typical path is C:\Documents and Settings\username\Start Menu\Programs.
#SRGet_CONTROLS Virtual folder that contains icons for Control Panel applications.
#SRGet_PRINTERS Virtual folder that contains installed printers.
#SRGet_PERSONAL File system directory that serves as a common repository for documents. A typical path is C:\Documents and Settings\username\My Documents. This is different from the My Documents virtual folder in the name space. To access that virtual folder, use the technique described in Managing the File System.
#SRGet_FAVORITES File system directory that serves as a common repository for the user's favourite items. A typical path is C:\Documents and Settings\username\Favorites.
#SRGet_STARTUP File system directory that corresponds to the user's Startup program group. The system starts these programs whenever any user logs onto Microsoft(r) Windows NT(r) or starts Microsoft(r) Windows(r) 98. A typical path is C:\Documents and Settings\username\Start Menu\Programs\Startup.
#SRGet_RECENT File system directory that contains the user's most recently used documents. A typical path is C:\Documents and Settings\username\Recent. To create a shortcut in this folder, use SHAddToRecentDocs. In addition to creating the shortcut, this function updates the Shell's list of recent documents and adds the shortcut to the Documents submenu of the Start menu.
#SRGet_SENDTO File system directory that contains Send To menu items. A typical path is C:\Documents and Settings\username\SendTo.
#SRGet_BITBUCKET Virtual folder that contains the objects in the user's Recycle Bin.
#SRGet_STARTMENU File system directory that contains Start Menu items. A typical path is C:\Documents and Settings\username\Start Menu.
#SRGet_MYDOCUMENTS Virtual folder that contains the objects in the user's My Documents folder.
#SRGet_MYMUSIC File system directory that serves as a common repository for music files. A typical path is C:\My Music.
#SRGet_MYVIDEO File system directory that serves as a common repository for video files.
#SRGet_DIRECTORY File system directory used to physically store file objects on the desktop (not to be confused with the desktop folder itself). A typical path is C:\Documents and Settings\username\Desktop
#SRGet_DRIVES My Computer-virtual folder that contains everything on the local computer: storage devices, printers, and Control Panel. The folder can also contain mapped network drives.
#SRGet_NETWORK Network Neighborhood-virtual folder that represents the root of the network namespace hierarchy.
#SRGet_NETHOOD A file system folder that contains the link objects that can exist in the My Network Places virtual folder. It is not the same as #SRGet_NETWORK, which represents the network namespace root. A typical path is C:\Documents and Settings\username\NetHood.
#SRGet_FONTS Virtual folder that contains fonts. A typical path is C:\WINNT\Fonts.
#SRGet_TEMPLATES File system directory that serves as a common repository for document templates.
#SRGet_COMMON_STARTMENU File system directory that contains the programs and folders that appear on the Start Menu for all users. A typical path is C:\Documents and Settings\All Users\Start Menu. Valid only for Windows NT systems.
#SRGet_COMMON_PROGRAMS File system directory that contains the directories for the common program groups that appear in the Start Menu for all users. A typical path is C:\Documents and Settings\All Users\Start Menu\Programs. Valid only for Windows NT systems.
#SRGet_COMMON_STARTUP File system directory that contains the programs that appear in the Startup folder for all users. A typical path is C:\Documents and Settings\All Users\Start Menu\Programs\Startup. Valid only for Windows NT systems.
#SRGet_COMMON_DESKTOPDIRECTORY File system directory that contains files and folders that appear on the desktop for all users. A typical path is C:\Documents and Settings\All Users\Desktop. Valid only for Windows NT systems.
#SRGet_APPDATA Version 4.71. File system directory that serves as a common repository for application-specific data. A typical path is C:\Documents and Settings\username\Application Data. This #SRGet is supported by the redistributable ShFolder.dll for systems that do not have the Microsoft(r) Internet Explorer 4.0 integrated Shell installed.
#SRGet_PRINTHOOD File system directory that contains the link objects that can exist in the Printers virtual folder. A typical path is C:\Documents and Settings\username\PrintHood.
#SRGet_LOCAL_APPDATA Version 5.0. File system directory that serves as a data repository for local (nonroaming) applications. A typical path is C:\Documents and Settings\username\Local Settings\Application Data.
#SRGet_ALTSTARTUP File system directory that corresponds to the user's nonlocalized Startup program group.
#SRGet_COMMON_ALTSTARTUP File system directory that corresponds to the nonlocalized Startup program group for all users. Valid only for Windows NT systems.
#SRGet_COMMON_FAVORITES File system directory that serves as a common repository for all user's favorite items. Valid only for Windows NT systems.
#SRGet_INTERNET_CACHE Version 4.72. File system directory that serves as a common repository for temporary Internet files. A typical path is C:\Documents and Settings\username\Temporary Internet Files.
#SRGet_COOKIES File system directory that serves as a common repository for Internet cookies. A typical path is C:\Documents and Settings\username\Cookies.
#SRGet_HISTORY File system directory that serves as a common repository for Internet history items.
#SRGet_COMMON_APPDATA Version 5.0. Application data for all users. A typical path is C:\Documents and Settings\All Users\Application Data.
#SRGet_WINDOWS Version 5.0. Windows directory or SYSROOT. This corresponds to the %windir% or %SYSTEMROOT% environment variables. A typical path is C:\WINNT.
#SRGet_SYSTEM Version 5.0. System folder. A typical path is C:\WINNT\SYSTEM32.
#SRGet_PROGRAM_FILES Version 5.0. Program Files folder. A typical path is C:\Program Files.
#SRGet_MYPICTURES Version 5.0. My Pictures folder. A typical path is C:\Documents and Settings\username\My Documents\My Pictures.
#SRGet_PROFILE Version 5.0. User's profile folder.
#SRGet_SYSTEMX86 The x86 system directory on Reduced Instruction Set Computer (RISC) systems.
#SRGet_PROGRAM_FILES_COMMON Version 5.0. A folder for components that are shared across applications. A typical path is C:\Program Files\Common. Valid only for Windows NT and Windows 2000 systems.
#SRGet_COMMON_TEMPLATES File system directory that contains the templates that are available to all users. A typical path is C:\Documents and Settings\All Users\Templates. Valid only for Windows NT systems.
#SRGet_COMMON_DOCUMENTS File system directory that contains documents that are common to all users. Typical paths are C:\Documents and Settings\All Users\Documents. Valid for Windows NT systems and Windows 95 and Windows 98 systems with Shfolder.dll installed.
#SRGet_COMMON_ADMINTOOLS Version 5.0. File system directory that contains administrative tools for all users.
#SRGet_ADMINTOOLS Version 5.0. File system directory used to store administrative tools for an individual user. The Microsoft Management Console (MMC) saves customized consoles to this directory, and it roams with the user.
#SRGet_CONNECTIONS Virtual folder that contains network and dial-up connections.
#SRGet_COMMON_MUSIC My Music folder for all users. For more information, see #SRGet_MYMUSIC
#SRGet_COMMON_PICTURES My Pictures folder for all users. For more information, see #SRGet_MYPICTURES
#SRGet_COMMON_VIDEO My Video folder for all users. For more information, see #SRGet_MYVIDEO
#SRGet_RESOURCES System resource directory. A typical path is C:\WINNT\Resources.
#SRGet_RESOURCES_LOCALIZED Localized resource directory. For more information, see #SRGet_RESOURCES
#SRGet_COMMON_OEM_LINKS Folder containing links to OEM specific applications for all users.
#SRGet_CDBURN_AREA File system folder used to hold data for burning to a CD. Typically [User Profile Folder]\Local Settings\Applications Data\Microsoft\CD Burning.
#SRGet_COMPUTERSNEARME Computers Near Me folder. Virtual folder that contains links to nearby computers on the network. Nearness it is established by common work group membership.

Supported OS

Windows

SRGET - Index