GetDirectories
GetDirectories
Returns a collection of strings representing the path names of sub-directories within a directory.
Syntax
FileSystem.GetDirectories(Directory)
Parameters
Directory |
String, input |
|
Name and path of directory. |
Remarks
SpecialDirectories |
||
AllUsersApplicationData |
Gets a path name pointing to the Application Data directory for all users. |
|
CurrentUserApplicationData |
Gets a path name pointing to the Application Data directory for the current user. |
|
Desktop |
Gets a path name pointing to the Desktop directory. |
|
MyDocuments |
Gets a path name pointing to the My Documents directory |
|
MyMusic |
Gets a path name pointing to the My Music directory. |
|
MyPictures |
Gets a path name pointing to the My Pictures directory. |
|
ProgramFiles |
Gets a path name pointing to the Program Files directory. |
|
Programs |
Gets a path name pointing to the Programs directory. |
|
Temp |
Gets a path name pointing to the Temp directory. |
Example
This example shows all the sub-directories of the Flex Terminal Emulator user data directory:
Sub Main()
For Each name In GetDirectories(SpecialDirectories.MyDocuments & "\FlexSoftware\Flex Terminal Emulator")
Msgbox name
Next
End Sub