GetShortPathName
-
I have an application which uses the win API GetShortPathName to get the short path(8.3) from a long path. The string is terminated with a '\'. Yet the path returned is not a short path. Is there any association with the registry key NtfsDisable8dot3 or does anyone have any idea as to what could be the reason of its not working. The platform is windows 2003.
-
I have an application which uses the win API GetShortPathName to get the short path(8.3) from a long path. The string is terminated with a '\'. Yet the path returned is not a short path. Is there any association with the registry key NtfsDisable8dot3 or does anyone have any idea as to what could be the reason of its not working. The platform is windows 2003.
tom groezer wrote:
Is there any association with the registry key NtfsDisable8dot3
Yes - the first Google hit for 'NtfsDisable8dot3'[^] could have told you that.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
tom groezer wrote:
Is there any association with the registry key NtfsDisable8dot3
Yes - the first Google hit for 'NtfsDisable8dot3'[^] could have told you that.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
Is there any other reason for such behavior
-
Is there any other reason for such behavior
For starters:
- The filesystem on which the file resides does not support short filenames (so, NTFS with the registry key we talked about, HFS+, extfs via a network connection)
- The file doesn't exist - it has to for
GetShortPathName
to work
Did you check the extended error information (with
GetLastError
) to see what error was signalled?Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p