Software Development Network>> Visual C#>> Folders
Hi,
If you mean regular directories on your system then you can use the Directory class from System.IO namespace. Here is some sample code below:
string
{
strDirectories = Directory.GetDirectories(strDrivename, "T*");
}
This code retrieves all folders starting with T.
Regards,
Vikram
Folders
DavePS
Alexandra Muller
Hi,
If you mean regular directories on your system then you can use the Directory class from System.IO namespace. Here is some sample code below:
string
[]strDrives = Environment.GetLogicalDrives(); string []strDirectories = null; foreach (string strDrivename in strDrives){
if (strDrivename != @"A:\")strDirectories = Directory.GetDirectories(strDrivename, "T*");
}
This code retrieves all folders starting with T.
Regards,
Vikram