Re: [python-win32] win32process.CreateProcess: '%1 is not a valid Win32 application.'

2020-12-09 Thread Eryk Sun
On 12/9/20, Niko Pasanen wrote: > > So the problem might be that on the Person C's computer, there is actually > a file called "first" that is creating the error. The reason why I was > using win32process.CreateProcess like this was that I'm actually using > pywinauto, which uses win32process.Cre

Re: [python-win32] win32process.CreateProcess: '%1 is not a valid Win32 application.'

2020-12-09 Thread Niko Pasanen
Dennis, Eryk, Thank you for your responses. The results for assoc and ftype are the same on my machine (should be tested on person C's pc, too). The space in filepath was one of my first guesses, but unfortunately I was not able to reproduce the error by putting a space in the filepath. But as Er

Re: [python-win32] win32process.CreateProcess: '%1 is not a valid Win32 application.'

2020-12-08 Thread Eryk Sun
On 12/8/20, Niko Pasanen wrote: > > path_to_exe = Path(r"C:\path to some\folder\some.exe") FYI, the constructor of pathlib.Path supports forward slash as the path separator, which avoids the need to use a raw string. A WindowsPath instance uses backslash when converting back to a string. > (h_pr

[python-win32] win32process.CreateProcess: '%1 is not a valid Win32 application.'

2020-12-08 Thread Niko Pasanen
Hi all, I'm having some challenges using pywin32 to launch a 32-bit Windows application, but the tricky thing is that I cannot reproduce the problem on my machine or my coworkers (person B) machine, but only on some other persons' (person C) machine, so my changes to debug this are very rare & lim