ShellExecuteEx = ctypes.windll.shell32.ShellExecuteEx
ShellExecuteEx.restype = ctypes.wintypes.BOOL
sei = SHELLEXECUTEINFO()
sei.cbSize = ctypes.sizeof(sei)
sei.fMask = SEE_MASK_NOCLOSEPROCESS | SEE_MASK_INVOKEIDLIST
sei.lpVerb = 'properties'
sei.lpFile = 'C:\\Desktop\\test.txt'
sei.nShow = 1
ShellExecuteEx(ctypes.byref(sei))
time.sleep(5)
Показать диалоговое окно свойств проводника для файла в Windows