uSystemFolder

Returns predefined application and system paths

Syntax

string uSystemFolder([foldertype])

Examples

Usage

Use uSystemFolder to access a special directory on the file system. You can specify the following folders:

Group

Name

Description

Application

APP_MAIN

The base application path. A typical path is C:\Program Files\ETL.

Application

APP_LIB

Shared library directory. A typical path is application_directory\lib.

Application

APP_LOG

Shared library directory. A typical path is application_directory\lib.

Application

APP_CONFIG

Config file directory. A typical path is application_directory\etc.

Application

APP_LICENSE

License directory. A typical path is application_directory\license.

Application

APP_SCRIPT

Script directory. A typical path is application_directory\scripts.

Application

APP_GRAMMAR

Grammar directory. A typical path is application_directory\grammar.

Application

APP_LANGUAGE

Language file directory. A typical path is application_directory\language.

Application

APP_DATABASE

Database directory. A typical path is application_directory\database.

Application

APP_TEMP

Temporary directory. A typical path is application_directory\temp.

Application

APP_DEMODATA

Demodata directory. A typical path is application_directory\demodata.

Application

APP_USERDATA

Directory where user specific files are stored. Typical path is C:\Documents and Settings\username\Application Data\ETL.

Windows

ALTSTARTUP

The file system directory that corresponds to the user’s non-localized Startup program group.

Windows

APPDATA

The file system directory that serves as a common repository for application-specific data. A typical path is C:\Documents and Settings\username\Application Data.

Windows

CDBURN_AREA

The file system directory acting as a staging area for files waiting to be written to CD. A typical path is C:\Documents and Settings\username\Local Settings\Application Data\Microsoft\CD Burning.

Windows

COMMON_ADMINTOOLS

The file system directory containing administrative tools for all users of the computer

Windows

COMMON_APPDATA

The file system directory containing application data for all users. A typical path is C:\Documents and Settings\All Users\Application Data.

Windows

COMMON_DESKTOPDIRECTORY

The file system directory that contains files and folders that appear on the desktop for all users. A typical path is C:\Documents and Settings\All Users\Desktop. Valid only for Windows NT systems.

Windows

COMMON_DOCUMENTS

The file system directory that contains documents that are common to all users. A typical paths is C:\Documents and Settings\All Users\Documents.

Windows

COMMON_FAVORITES

The file system directory that serves as a common repository for favorite items common to all users. Valid only for Windows NT systems.

Windows

COMMON_MUSIC

The file system directory that serves as a repository for music files common to all users. A typical path is C:\Documents and Settings\All Users\Documents\My Music.

Windows

COMMON_PICTURES

The file system directory that serves as a repository for image files common to all users. A typical path is C:\Documents and Settings\All Users\Documents\My Pictures.

Windows

COMMON_PROGRAMS

The file system directory that contains the directories for the common program groups that appear on the Start menu for all users. A typical path is C:\Documents and Settings\All Users\Start Menu\Programs. Valid only for Windows NT systems.

Windows

COMMON_STARTMENU

The file system directory that contains the programs and folders that appear on the Start menu for all users. A typical path is C:\Documents and Settings\All Users\Start Menu. Valid only for Windows NT systems.

Windows

COMMON_STARTUP

The file system directory that contains the programs that appear in the Startup folder for all users. A typical path is C:\Documents and Settings\All Users\Start Menu\Programs\Startup. Valid only for Windows NT systems.

Windows

COMMON_TEMPLATES

The file system directory that contains the templates that are available to all users. A typical path is C:\Documents and Settings\All Users\Templates. Valid only for Windows NT systems.

Windows

COMMON_VIDEO

The file system directory that serves as a repository for video files common to all users. A typical path is C:\Documents and Settings\All Users\Documents\My Videos.

Windows

COOKIES

The file system directory that serves as a common repository for Internet cookies. A typical path is C:\Documents and Settings\username\Cookies.

Windows

DESKTOP

The virtual folder representing the Windows desktop, the root of the namespace.

Windows

DESKTOPDIRECTORY

The file system directory used to physically store file objects on the desktop (not to be confused with the desktop folder itself). A typical path is C:\Documents and Settings\username\Desktop.

Windows

FAVORITES

The file system directory that serves as a common repository for the user's favorite items. A typical path is C:\Documents and Settings\username\Favorites.

Windows

FONTS

A virtual folder containing fonts. A typical path is C:\Windows\Fonts.

Windows

HISTORY

The file system directory that serves as a common repository for Internet history items.

Windows

INTERNET_CACHE

The file system directory that serves as a common repository for temporary Internet files. A typical path is C:\Documents and Settings\username\Local Settings\Temporary Internet Files.

Windows

MYDOCUMENTS

Virtual folder representing the My Documents desktop item.

Windows

MYMUSIC

The file system directory that serves as a common repository for music files. A typical path is C:\Documents and Settings\User\My Documents\My Music.

Windows

MYPICTURES

The file system directory that serves as a common repository for image files. A typical path is C:\Documents and Settings\username\My Documents\My Pictures.

Windows

MYVIDEO

The file system directory that serves as a common repository for video files. A typical path is C:\Documents and Settings\username\My Documents\My Videos.

Windows

NETHOOD

A file system directory containing the link objects that may exist in the My Network Places virtual folder. It is not the same as CSIDL_NETWORK, which represents the network namespace root. A typical path is C:\Documents and Settings\username\NetHood.

Windows

PERSONAL

The virtual folder representing the My Documents desktop item. This is equivalent to MYDOCUMENTS.

Windows

PRINTHOOD

The file system directory that contains the link objects that can exist in the Printers virtual folder. A typical path is C:\Documents and Settings\username\PrintHood.

Windows

PROFILE

The user's profile folder. A typical path is C:\Documents and Settings\username. Applications should not create files or folders at this level; they should instead place data under the locations referred to by APPDATA or LOCAL_APPDATA.

Windows

PROGRAM_FILES

The Program Files folder. A typical path is C:\Program Files.

Windows

PROGRAM_FILES_COMMON

A folder for components that are shared across applications. A typical path is C:\Program Files\Common. Valid only for Windows NT, Windows 2000, and Windows XP systems.

Windows

PROGRAMS

The file system directory that contains the user's program groups (which are themselves file system directories). A typical path is C:\Documents and Settings\username\Start Menu\Programs.

Windows

RECENT

The file system directory that contains shortcuts to the user's most recently used documents. A typical path is C:\Documents and Settings\username\My Recent Documents. To create a shortcut in this folder, use SHAddToRecentDocs. In addition to creating the shortcut, this function updates the shell's list of recent documents and adds the shortcut to the My Recent Documents submenu of the Start menu.

Windows

SENDTO

The file system directory that contains Send To menu items. A typical path is C:\Documents and Settings\username\SendTo.

Windows

STARTMENU

The file system directory containing Start menu items. A typical path is C:\Documents and Settings\username\Start Menu.

Windows

STARTUP

The file system directory that corresponds to the user's Startup program group. The system starts these programs whenever any user logs in to Windows NT or starts Windows 95. A typical path is C:\Documents and Settings\username\Start Menu\Programs\Startup.

Windows

SYSTEM

The Windows System folder. A typical path is C:\Windows\System32.

Windows

TEMPLATES

The file system directory that serves as a common repository for document templates. A typical path is C:\Documents and Settings\username\Templates.

Windows

WINDOWS

The Windows directory or SYSROOT. This corresponds to the %windir% or %SYSTEMROOT% environment variables. A typical path is C:\Windows.