tumblr tracker

ListFolders

Library Reference ›› Folder ››
Parent Previous Next

Folder.ListFolders


Namespace: Folder


Lists all subfolders in a folder.


retval = Folder.ListFolder(Path)


Parameters:

- Path; string constant or variable containing the folder path to list the subfolders from


Returns:

array of strings; subfolders contained in the folder pointed in Path; array value.


Example


$Folders = Folder.ListFolders("C:\TEMP");

ForEach ($Folder in $Folders)
{
   MessageBox.ShowInfo($Folder);
}