Long pathes on windows

DJW dwelch91 at home.nospam.com
Mon Jun 17 14:45:09 EDT 2002


Use:
short_path = win32api.GetShortPathName( long_path )

Example:

>>> import win32api
>>> s = win32api.GetShortPathName( "c:\\program files" )
>>> print s
c:\PROGRA~1
>>>


Don

"Roman Yakovenko" <romany at actimize.com> wrote in message
news:mailman.1024334302.2943.python-list at python.org...
Good evening. I have big problem Windows 2000 and small one.
The small one is long pathes on windwos. How can I convert long path with '
'
into short path?

Thanks for the help. Roman.






More information about the Python-list mailing list