win32file.SetFileShortName

SetFileShortName(hFile, ShortName)

Set the 8.3 name of a file

Parameters

hFile : PyHANDLE

Handle to a file or directory

ShortName : string

The 8.3 name to be applied to the file

Comments

This function is only available on WinXP and later

File handle must be opened with FILE_FLAG_BACKUP_SEMANTICS, and SE_RESTORE_NAME privilege must be enabled