Al Programming
Free source code programming in C#, VB.Net, Java, SQL
Search This Blog
Monday, September 29, 2014
GetDrives C# Example
C#
>
Files
>
DriverInfo
>
GetDrives
Retrieves the drive names of all logical drives
Example:
DriveInfo
[] allDrives =
DriveInfo
.GetDrives();
foreach
(
DriveInfo
d
in
allDrives)
{
tvLeft.Nodes.Add(d.Name);
}
Newer Post
Older Post
Home