I have a .bat in a folder with an exe named abcexport.exe with the following code inside :
abcexport.exe myswf.swf
Double-clicking the bat as normally on windows exports the swf as expected.
I need to do this from within python, but it complains abcexport is “not recognized as an internal or external command”.
My code :
Attempt 1 -
os.startfile("path\\decompiler.bat")
Attempt 2 -
subprocess.call([path\\decompiler.bat"])
Also tried the same with os.system(), and with subprocess method Popen, and passing the argument shell=True ends up in the same