May 21, 2005 #1 D DreamKid Member Joined Apr 12, 2004 Messages 17 We can get a base directory with: System.AppDomain.CurrentDomain.BaseDirectory() Any idea how can we get the directory up one level? Example: Base directory: C:/Temp/Base/ I want to get C:/Temp/ How can I do it?
We can get a base directory with: System.AppDomain.CurrentDomain.BaseDirectory() Any idea how can we get the directory up one level? Example: Base directory: C:/Temp/Base/ I want to get C:/Temp/ How can I do it?
May 21, 2005 #2 T thenerd Well-known member Joined Jan 22, 2005 Messages 154 Location Northern New Jersey System.AppDomain.CurrentDomain.BaseDirectory() & "\..\whatever.bmp"
May 27, 2005 #4 S splice Well-known member Joined Jul 2, 2003 Messages 62 Location Boulder, CO Or, you can use: IO.Directory.GetParent(somePath).FullName()