<< Click to Display Table of Contents >> Navigation: ThinBASIC Core Language > BuiltIn Functions > System functions > System > System.Info > SpecialFolder |
Description
Returns complete path to every Operating System special folders.
Syntax
sData = System.Info.SpecialFolder(CLSID)
Returns
String.
Parameters
Name |
Type |
Optional |
Meaning |
CLSID |
Numeric |
No |
See OS Equates for possible predefined values |
Remarks
See https://msdn.microsoft.com/it-it/library/windows/desktop/bb762494(v=vs.85).aspx for CSIDL additional information.
CSIDL values provide a unique system-independent way to identify special folders used frequently by applications, but which may not have the same name or location on any given system. For example, the system folder may be "C:\Windows" on one system and "C:\Winnt" on another.
Here the list of possible CSIDL values:
%CSIDL_ADMINTOOLS
%CSIDL_ALTSTARTUP
%CSIDL_APPDATA
%CSIDL_BITBUCKET
%CSIDL_CDBURN_AREA
%CSIDL_COMMON_ADMINTOOLS
%CSIDL_COMMON_ALTSTARTUP
%CSIDL_COMMON_APPDATA
%CSIDL_COMMON_DESKTOPDIRECTORY
%CSIDL_COMMON_DOCUMENTS
%CSIDL_COMMON_FAVORITES
%CSIDL_COMMON_MUSIC
%CSIDL_COMMON_PICTURES
%CSIDL_COMMON_PROGRAMS
%CSIDL_COMMON_STARTMENU
%CSIDL_COMMON_STARTUP
%CSIDL_COMMON_TEMPLATES
%CSIDL_COMMON_VIDEO
%CSIDL_CONTROLS
%CSIDL_COOKIES
%CSIDL_DESKTOP
%CSIDL_DESKTOPDIRECTORY
%CSIDL_DRIVES
%CSIDL_FAVORITES
%CSIDL_FLAG_CREATE
%CSIDL_FONTS
%CSIDL_HISTORY
%CSIDL_INTERNET
%CSIDL_INTERNET_CACHE
%CSIDL_LOCAL_APPDATA
%CSIDL_MYDOCUMENTS
%CSIDL_MYMUSIC
%CSIDL_MYPICTURES
%CSIDL_MYVIDEO
%CSIDL_NETHOOD
%CSIDL_NETWORK
%CSIDL_PERSONAL
%CSIDL_PRINTERS
%CSIDL_PRINTHOOD
%CSIDL_PROFILE
%CSIDL_PROGRAM_FILES
%CSIDL_PROGRAM_FILES_COMMON
%CSIDL_PROGRAMS
%CSIDL_RECENT
%CSIDL_SENDTO
%CSIDL_STARTMENU
%CSIDL_STARTUP
%CSIDL_SYSTEM
%CSIDL_TEMPLATES
%CSIDL_WINDOWS
Restrictions
Some CLSID may not be present to all Windows versions. Please refer to the above Microsoft link for which CLSID is present with which OS version.
See also
Examples