How does one evaluate short path names into long path names as in the following example:
Short form: "D:\fl72\FACTOR~1\APPLIC~1\STARTE~1" ,
should evaluate to: "D:\fl72\FactoryLink\Applications\Starter App"
I have looked at the System.IO.Path class : Path.GetFullPath(..) , but from VisualStudio Help [ms-help://MS.VSCC/MS.MSDNVS/ cpref/html/frlrfsystemiopathclassgetfullpathtopic.htm] it reads: "If you pass in a short file name, it is not expanded to a long file name."
I have also looked at the Directory and DirectoryInfo classes, but to no avail. There are however clues of how to do this using the WinAPI along the lines of the BrowseForFolder demo from(http://www.developingskills.com/ds.php?article=dsbrowseforfolder&page=1).
Does anyone know how to do this the .NET way ?
/Erik.
Short form: "D:\fl72\FACTOR~1\APPLIC~1\STARTE~1" ,
should evaluate to: "D:\fl72\FactoryLink\Applications\Starter App"
I have looked at the System.IO.Path class : Path.GetFullPath(..) , but from VisualStudio Help [ms-help://MS.VSCC/MS.MSDNVS/ cpref/html/frlrfsystemiopathclassgetfullpathtopic.htm] it reads: "If you pass in a short file name, it is not expanded to a long file name."
I have also looked at the Directory and DirectoryInfo classes, but to no avail. There are however clues of how to do this using the WinAPI along the lines of the BrowseForFolder demo from(http://www.developingskills.com/ds.php?article=dsbrowseforfolder&page=1).
Does anyone know how to do this the .NET way ?
/Erik.