win32api.GetShortPathName
string = GetShortPathName(path)
Obtains the short path form of the specified path.
Parameters
path : string/unicode
If a unicode object is passed,
GetShortPathNameW will be called and a unicode object returned.Comments
The short path name is an 8.3 compatible file name. As the input path does
not need to be absolute, the returned name may be longer than the input path.
Win32 API References
Search for GetShortPathName at msdn, google or google groups.