hello, do somebody knows how to programm a convertert, that convert windowspath to dos-paths ("WINDO~1")?

Greets BBB
Posted on 2003-09-07 03:16:21 by Bubu-Boy
Easy one BuBu-Boy:

LongPath db "C:\Folder\This is a long path.txt",0

ShortPath db MAX_PATH DUP(?)

invoke GetShortPathName,OFFSET LongPath,OFFSET ShortPath,MAX_PATH
Posted on 2003-09-07 03:39:10 by donkey
Just a note of experience, ignore the return value of GetShortPathName. It always 'fails' on 98, even though the dest string has the correct value.
Posted on 2003-09-07 05:12:01 by eet_1024
How to do the reverse?
Posted on 2003-09-07 05:15:06 by inFinie
The reverse: GetLongPathName... or, if you insist on supporting win95, FindFirstFile - have a look at the MSDN entry for GetShortPathName.
Posted on 2003-09-07 06:43:30 by f0dder