RootFolderType Property

Applies to TestComplete 15.63, last modified on April 23, 2024

Specifies the source of the root location displayed in the dialog.

Declaration

componentObj.RootFolderType
Read-Write Property String
componentObj     One of the user forms components listed in the Applies To section  

Applies To

The property applies to the following components:

TSelectDirectory

Description

Use the RootFolderType property to specify one of the common system folders to be used as the root location of the folders tree displayed in the dialog. Examples of such folders are: Desktop, My Computer, My Documents, and so on. If you want to use a custom folder as a root folder, set RootFolderType to “rftCustom” and specify the path to the desired folder in the CustomRootFolder property.

Property Value

One of the following string values:

Value Description
rftApplicationData The folder that contains the application-specific data for the user, such as C:\ProgramData (Windows 7) or C:\Documents and Settings\<User_Name>\Application Data (Windows XP).
rftCommonApplicationData The folder that contains the application-specific data common to all users, such as C:\ProgramData (Windows 7), C:\Users\Public\AppData (Windows Vista) or C:\Documents and Settings\All Users\Application Data (Windows XP).
rftCommonProgramFiles The folder that stores shared application files (C:\Program Files\Common Files).
rftCookies The folder that contains the user’s Internet cookies, such as C:\Users\<User_Name>\AppData\Roaming\Microsoft\Windows\Cookies (Windows 7 or Windows Vista) or C:\Documents and Settings\<User_Name>\Cookies (Windows XP).
rftCustom The folder specified in the CustomRootFolder property is used as the start location.
rftDesktop The virtual Desktop folder that represents Windows Desktop and contains My Documents, My Computer and My Network Places folders.
rftDesktopDirectory The physical directory that stores Windows Desktop items, such as C:\Users\<User_Name>\Desktop (Windows 7 or Windows Vista) or C:\Documents and Settings\<User_Name>\Desktop (Windows XP).
rftFavorites The folder that stores the current user’s Favorites items, such as C:\Users\<User_Name>\Favorites (Windows 7 and Windows Vista) or C:\Documents and Settings\<User_Name>\Favorites (Windows XP).
rftHistory The folder that contains the user’s Internet history items, such as C:\Users\<User_Name>\AppData\Local\Microsoft\Windows\History (Windows 7 or Windows Vista) or C:\Documents and Settings\<User_Name>\Local Settings\History (Windows XP).
rftLocalApplicationData The folder that stores application-specific data for the user, such as C:\Users\<User_Name>\AppData\Roaming (Windows 7), C:\Users\<User_Name>\AppData\ (Windows Vista) or C:\Documents and Settings\<User_Name>\Local Settings\Application Data (Windows XP).
rftInternetCache The folder that stores the user’s temporary Internet files, such as C:\Users\<User_Name>\AppData\Local\Microsoft\Windows\Temporary Internet Files (Windows 7 or Windows Vista) or C:\Documents and Settings\<User_Name>\Temporary Internet Files (Windows XP).
rftMyComputer The virtual My Computer folder that provides access to physical drives.
rftMyDocuments The user’s My Documents folder, such as C:\Users\<User_Name>\Documents (Windows 7 or Windows Vista) or C:\Documents and Settings\<User_Name>\My Documents (Windows XP). This is the same as “rftPersonal
rftMyMusic The user’s My Music folder, such as C:\Users\Public\Music (Windows 7 or Windows Vista) or C:\Documents and Settings\<User_Name>\My Music (Windows XP).
rftMyPictures The user’s My Pictures folder, such as C:\Users\Public\Pictures (Windows 7), C:\Users\<User_Name>\Pictures (Windows Vista) or C:\Documents and Settings\<User_Name>\My Pictures (Windows XP).
rftNone No root folder. In this case the start location is the virtual Desktop folder that represents Windows Desktop.
rftPersonal The user’s My Documents folder, such as C:\Users\<User_Name>\Documents (Windows 7 and Windows Vista) or C:\Documents and Settings\<User_Name>\My Documents (Windows XP). This is the same as “rftMyDocuments”.
rftProgramFiles The Program Files folder, such as C:\Users\<User_Name>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs (Windows 7 or Windows Vista) or C:\Program Files (Windows XP).
rftPrograms The folder that stores items of the user’s Programs Start menu group, such as C:\Users\<User_Name>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs (Windows 7 and Windows Vista) or C:\Documents and Settings\<User_Name>\Start Menu\Programs (Windows XP).
rftRecent The user’s My Recent Documents folder that stores the most recently used documents, such as C:\Users\<User_Name>\AppData\Roaming\Microsoft\Windows\Recent (Windows 7 or Windows Vista) or C:\Documents and Settings\<User_Name>\Recent (Windows XP).
rftSendTo The folder that contains the user’s Send To context menu items, such as C:\Users\<User_Name>\AppData\Roaming\Microsoft\Windows\SendTo (Windows 7 or Windows Vista) or C:\Documents and Settings\<User_Name>\Send To (Windows XP).
rftStartMenu The folder that contains the user’s Start Menu items, such as C:\Users\<User_Name>\AppData\Roaming\Microsoft\Windows\Start Menu (Windows 7 or Windows Vista) or C:\Documents and Settings\<User_Name>\Start Menu (Windows XP).
rftStartup The folder that contains the user’s Startup group of the Start menu, such as C:\Users\<User_Name>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup (Windows 7 or Windows Vista) or C:\Documents and Settings\<User_Name>\Start Menu\Programs\Startup (Windows XP).
rftTemplates The folder that stores the user’s document templates, such as C:\Users\<User_Name>\AppData\Roaming\Microsoft\Windows\Templates (Windows 7 or Windows Vista) or C:\Documents and Settings\<User_Name>\Templates (Windows XP).
rftSystem The Windows System directory (like C:\Windows\System32).

The default value is “rftNone”.

See Also

CustomRootFolder Property

Highlight search results