How to stay on the root directory
Posted on 2007-03-23
I have a property that looks like the following:
public static string RootDirectory
string current = Directory.GetCurrentDirectory();
string root = Directory.GetDirectoryRoot(current);
Somewhere while the program goes through its progression, the directory points to a mapped network drive called "Q:". I would like to know how to remain on my root directory in which the application is running (in this case the C:\ drive).