Reputation: 86165
I have a filename like "c:\temp\test\test.jpg", how can I get "c:\temp\test" directory?
Upvotes: 0
Views: 223
Reputation: 8068
I've always done things like this using the System.IO.FileInfo class. The DirectoryName property should help in this instance.
Upvotes: 0