I want to be able to convert my files and directories which are in 8.3
format to what the user would normally see.
So if I have the string c:\docume~1\username I would like to replace it with
c:\Documents and Settings\username.
I currently check each directory in 8.3 format in the string against the WMI
Win32_Directory EightDotThreeFileName property until I find a match and then
replace it.
I can't help but feel there must be an easier way than this. Does anyone
know a simple call I can make that will take in a directory in 8.3 format
and return full path?
|