DreamKid Posted May 21, 2005 Posted May 21, 2005 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? Quote
thenerd Posted May 21, 2005 Posted May 21, 2005 System.AppDomain.CurrentDomain.BaseDirectory() & "\..\whatever.bmp" Quote
splice Posted May 27, 2005 Posted May 27, 2005 Or, you can use: IO.Directory.GetParent(somePath).FullName() Quote -=splice=- It's not my fault I'm a Genius!
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.