shahine.com/omar/

homepage | Send mail to the author(s) contact

yet another Microsoft blogger

# Friday, December 26, 2003

GotDotNet Sample: Shell Path Name Convert

I uploaded a new GotDotNet user sample. Shell Path Name Convert will convert a Short Path Name to a Long Path Name and vice versa. If you have written an .NET app that takes command line arguments, the shell will send you Short Path names rather than Long Path names. Unfortunatley there is no built in way to go back and forth between the two. Short Path Name is the 8 character cryptic meaningless name that is used on older filesystems that can't handle long file names.

This sample exposes two static functions in the Convert Class.

  1. public static string ToLongPathName(string shortName)
  2. public static string ToShortPathName(string longName)

There is also an enclosed test application. I hope this helps some one out ;-). I really needed this a few days ago while working on a Zipping/Unzipping application.

 

Sunday, June 12, 2005 2:23:37 AM (Pacific Daylight Time, UTC-07:00)
I tested and works fine. Thank you very much for info.
Comments are closed.