ZennoLab.Macros Assembly > ZennoLab.Macros Namespace > FileSystem Class : DirectorySubItem Method |
Type: System.String
Path to the directory.
Type: System.String
Sampling units ("d" - directories, "f" - files, "df" - all together) .
Type: System.String
The number of the element.
Type: System.Boolean
true if sort items before sampling; otherwise, false.
public static string DirectorySubItem( string pathToDirectory, string items, string itemNumber, bool sortAlphabetically )
Type: System.String
Path to the directory.
Type: System.String
Sampling units ("d" - directories, "f" - files, "df" - all together) .
Type: System.String
The number of the element.
Type: System.Boolean
true if sort items before sampling; otherwise, false.
Type: System.String
Directory entries .
string pathToDirectory = {pathToDirectory}; string items = "df"; string itemNumber = "0"; bool sortAlphabetically = false; string result = FileSystem.DirectorySubItem(pathToDirectory, items, itemNumber, sortAlphabetically);
$pathToDirectory = {pathToDirectory}; $items = "df"; $itemNumber = "0"; $sortAlphabetically = false; $result = FileSystem::DirectorySubItem($pathToDirectory, $items, $itemNumber, $sortAlphabetically);
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.