[Tutor] sys.argv

Terry Carroll carroll at tjc.com
Mon Feb 13 19:40:43 CET 2006


On Mon, 13 Feb 2006, [ISO-8859-1] János Juhász wrote:

> Is it any way to translate the sort DOS filename to the long NTSF one with
> python ?

You'll have to expand on this to handle files other than current 
directory, but basically:

>>> win32api.FindFiles("FILEWI~1.TXT")[0][8]
'FileWithALongFileName.txt'



More information about the Tutor mailing list