4D v12.4System folder |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v12.4
System folder
|
System folder {( type )} -> Function result | ||||||||
Parameter | Type | Description | ||||||
type | Longint |
![]() |
Type of system folder | |||||
Function result | String |
![]() |
Pathname to a system folder | |||||
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:
Constant | Type | Value |
Applications or Program Files | Longint | 16 |
Desktop | Longint | 15 |
Favorites Win | Longint | 14 |
Fonts | Longint | 1 |
Start Menu Win_All | Longint | 8 |
Start Menu Win_User | Longint | 9 |
Startup Win_All | Longint | 4 |
Startup Win_User | Longint | 5 |
System | Longint | 0 |
System Win | Longint | 12 |
System32 Win | Longint | 13 |
User Preferences_All | Longint | 2 |
User Preferences_User | Longint | 3 |
If you omit the type parameter, the function will return the pathname to active System folder (= constant System).
Product: 4D
Theme: System Environment
Number:
487
Modified: 4D v11 SQL Release 4
Get 4D folder
Temporary folder