SystemFolder Function

Used to access the System folder.

Syntax
result = SystemFolder( )

Return Value
Result | FolderItem | A FolderItem that represents the System Folder.

# Notes

Use the SystemFolder function to access the user's System Folder.

The SystemFolder function provides a way to access the System folder that will work under different language systems, and will continue to work even if the operating system is reorganized.

The SpecialFolder module enables you to access many special folders that are managed by the OS.

## Windows

On Windows, SystemFolder accesses the \Windows\System32 directory.

## Macintosh

On Macintosh, SystemFolder accesses the :System folder.

## Linux

On Linux, SystemFolder accesses the /usr directory.

# Example

This example displays the absolute path to the system folder on the user's machine.

Dim f As FolderItem
f=SystemFolder
if f <> Nil Then
MsgBox f.AbsolutePath
Else
MsgBox "The folderItem does not exist."
End if

# See Also

ApplicationSupportFolder, DesktopFolder, FontsFolder, PreferencesFolder, StartupItemsFolder, TemporaryFolder, TrashFolder, SpecialFolder functions.