I am new to python and I would like to run a .exe file using python (Win).
One major output of this external .exe file is to save a log file, and the original code was written in C. I run this .exe file by calling Popen as suggested by some answers, but it did not save any file.
A simplified version of this question would be: 1. I start a C project that writes "Hellow World" to a text file called "1.txt". 2. This C file is then built and compiled into an executable file called a.exe. 3. I run this a.exe file in python by called subprocess.Popen("a.exe"). 4. Nothing saved.
Any idea?
Thanks.