System folder

4D - Documentation   Français   English   German   Spanish   Japanese   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 11.4 (Modified)


System folder {(type)} String

ParameterTypeDescription
typeLongintType of system folder
Function resultStringPathname to a system folder

Description

The System folder command returns the pathname to a particular folder of the operating system or to the active Windows or Mac OS System folder itself.

You pass in the optional type parameter a value indicating the type of system folder. 4D provides you with the following predefined constants, placed in the "System Folder" theme:

ConstantTypeValue
SystemLong Integer0
FontsLong Integer1
User Preferences_AllLong Integer2
User Preferences_UserLong Integer3
Startup Win_AllLong Integer4
Startup Win_UserLong Integer5
Start Menu Win_AllLong Integer8
Start Menu Win_UserLong Integer9
System WinLong Integer12
System32 WinLong Integer13
Favorites WinLong Integer14
DesktopLong Integer15
Applications or Program FilesLong Integer16

Notes:

The constants suffixed Win can be used on Windows only. When they are used on Mac OS, System folder will return an empty string.

The pathnames to some system folders can specific to the current user. Constants 2 to 9 allow you to choose whether you want to obtain the pathname to a folder which is shared by all users, or customized for the current user.

If you omit the type parameter, the function will return the pathname to active System folder (= constant System).

See Also

Get 4D folder, Temporary folder.


4D - Documentation   Français   English   German   Spanish   Japanese   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next