I'm trying to call an executable that has parentheses in the name (e.g. 'test(1).exe'
).
With Python 3.6.2, when I try the following:
os.system('test(1).exe')
I get:
'test' is not recognized as an internal or external command, operable
program or batch file.
But if I change the filename to 'test1).exe'
by removing '('
, then the following works successfully:
os.system('test1).exe')
Any ideas why the left parenthesis is causing an issue with os.system
?