I am trying to invoke Visual Studio build from a python program. My code given below. It shows the error.
'C:\Program' is not recognized as an internal or external command, operable program or batch file.
vspath = "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Professional\\Common7\\IDE";
devenvpath = os.path.join(vspath, "devenv.exe")
buildcmd = '\"' + devenvpath + '\" ' + 'Test.sln /Rebuild \"Release|Any CPU\" /project Test'
print(buildcmd)
os.system(buildcmd)