79290620

Date: 2024-12-18 09:39:16
Score: 1.5
Natty:
Report link

With Python 3 you have this error on lpVerb and lpFile :

TypeError: bytes or integer address expected instead of str instance

So you have to convert the strings into bytes in your code with : encode('utf-8') like :

sei.lpVerb = "properties".encode('utf-8')
sei.lpFile = "C:\\Desktop\\test.txt".encode('utf-8')

refer to : Python 3.5, ctypes: TypeError: bytes or integer address expected instead of str instance

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Géo-IT Solutions