How do I find the parent directory of a path?
Everything you want is in the Directory class:
http://msdn.microsoft.com/en-us/library/system.io.directory.aspx
In particular, GetParent:
http://msdn.microsoft.com/en-us/library/system.io.directory.getparent.aspx
upDir = Directory.GetParent(path).FullName;
string path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
string parentDir = Directory.GetParent(path).FullName;