Give me the Short Path/File/Directory names, baby! [Kit George]
Keith Hill inquired recently:
There are times when displaying long paths (like as a menu item) that you would like to display a shortened path. Since the Win32 API already has a CompactPath API, it would be nice to expose this via the Path class.
We completely agree Keith, this is something we haven't had a chance to get to, but it is on our radar. It won't be available in Whidbey, but keep an eye out for it in the future.
Comments
- Anonymous
January 20, 2004
http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=b310d797-bdb2-4726-a0f0-ec44baa2ac66
I wrote a sample to do this.