windowserror

os.system to invoke an exe which lies in a dir whose name contains whitespace

os.system to invoke an exe which lies in a dir whose name contains whitespace Question: My code is simply as follows: file = ‘C:\Exe\First Version\filename.exe’ os.system(file) When I run this program, a Windows error is raised: can’t find the file specified. I found out the problem has to with the whitespace in the middle of …

Total answers: 5