예제 #1
0
        public static string GetShortPathName(string longPathName)
        {
            StringBuilder output = new StringBuilder(1024);

            Externals.GetShortPathName(String.Concat(@"\\?\", longPathName), output, 1024);
            output.Remove(0, 4);
            return(output.ToString());
        }