GetSysDir function
System Information routines
Return to Introduction  Previous page  Next page
Unit
acUtils  

Declaration
type  
TacSystemDirectory = (sdCurrentDir,  
                      sdDesktop, sdMyDocuments, sdMyPictures,  
                      sdAppData, sdProgramFiles, sdWindowsDir,  
                      sdSystemDir, sdTempDir, sdHelpDir,  
                      sdMediaDir, sdCursorsDir, sdNone);  
 
function GetSysDir(Dir: TacSystemDirectory): String;  

Description
The GetSysDir function can retrieve the system path to some special folder.  
 
When calling this function with sdCurrentDir parameter, the function will return the path to the executed EXE file of currently running application.  
 
Calling function with sdNone parameter will return empty string.  

See also
ExpandToRealPath, GetTempDir, GetWindowsDir and GetSystemDir functions;  
acSystemInfo component.