FileInfo f = new FileInfo(path);
string drive = Path.GetPathRoot(f.FullName);
This will return “C:\”. That’s really the only other way.
FileInfo f = new FileInfo(path);
string drive = Path.GetPathRoot(f.FullName);
This will return “C:\”. That’s really the only other way.