To get the list of all the logical drives on the system

string [] localDrives = Directory.GetLogicalDrives();

To get the first drive on the system

string localDrives = Directory.GetLogicalDrives().First();

To create a directory on the local system

Directory.CreateDirectory("H2OLog");

Advertisements