System folder

4D - Documentation   Français   English   German   4th Dimension 2003, Command Theme List   4th Dimension 2003, Command Alphabetical List   4th Dimension 2003, Constant Theme List   Back   Previous   Next

version 6.7 (Modified)


System folder {(type)} String

ParameterTypeDescription
typeLongintType of system folder
Function resultStringPathname to a system folder

Description

The command System folder returns the pathname to a system folder within the active Windows or Macintosh System folder, or to the active Windows or Macintosh 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
Preferences or Profiles_AllLong Integer2
Preferences or Profiles_UserLong Integer3
Startup Items_AllLong Integer4
Startup Items_UserLong Integer5
Mac Shutdown Items_AllLong Integer6
Mac Shutdown Items_UserLong Integer7
Apple or Start Menu_AllLong Integer8
Apple or Start Menu_UserLong Integer9
Mac ExtensionsLong Integer10
Mac Control PanelsLong Integer11
System WinLong Integer12
System32 WinLong Integer13
Favorites WinLong Integer14
Desktop WinLong Integer15
Program Files WinLong Integer16

The pathnames to some system folders can specific to the current user. Constants 2 to 9 allows 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.

Note: The constants Mac Shutdown Items, Mac Extensions and Mac Control Panels can be used on Mac OS only. When they are used on Windows, System folder will return an empty string. Conversely, the constants System Win, System32 Win, Favorites Win, Desktop Win and Program Files Win can be used on Windows only. When they are used on Mac OS, System folder will return an empty string.

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   4th Dimension 2003, Command Theme List   4th Dimension 2003, Command Alphabetical List   4th Dimension 2003, Constant Theme List   Back   Previous   Next