On Windows 10, I am converting a perl script to python, but I have a problem.
The command in the perl script file is:
In Python, I use the exact same argument in the following system call:
My problem is that the executable program is supposed to create 4 files in C:\Temp. The perl script does create all 4 files as it is supposed too. But, the Python script creates only 1 file then gives me a popup window saying, "COULD NOT OPEN THIS C:\TEMP". The program then deletes the file it created.
I know nothing about the executable. It was created my someone years ago.
I tried changing one property of the executable file, so that all users execute it as an administrator. But, that didn't solve the problem.
I tried making all the files involved to be readable but that also didn't work.
Is there a difference between the Perl "system(...)" command and the Python "os.system(...)" command that I should be aware of?
Should I use a different command instead of "os.system()"?
Thank you,
Mike
The command in the perl script file is:
Quote:system ("a dot exe file with 3 options");
In Python, I use the exact same argument in the following system call:
os.system ("a dot exe file with 3 options")Note: The two above commands have the exact same string!
My problem is that the executable program is supposed to create 4 files in C:\Temp. The perl script does create all 4 files as it is supposed too. But, the Python script creates only 1 file then gives me a popup window saying, "COULD NOT OPEN THIS C:\TEMP". The program then deletes the file it created.
I know nothing about the executable. It was created my someone years ago.
I tried changing one property of the executable file, so that all users execute it as an administrator. But, that didn't solve the problem.
I tried making all the files involved to be readable but that also didn't work.
Is there a difference between the Perl "system(...)" command and the Python "os.system(...)" command that I should be aware of?
Should I use a different command instead of "os.system()"?
Thank you,
Mike