I have the following error on fresh windows 8 install with microsoft visual studio ultimate 2013 :
cl : Command line error D8050 : cannot execute \'C:\\Program
I ran into this error after I cleaned up my C drive (deleted temporary files of all sorts). I was able to fix it by re-setting the environment variables for Visual C++ command-line tools. This page was my reference. I was building 64 bit.
Run cmd as admin.
c:\>cd YourVSInstallDir\VC
c:\YourVSInstallDir\VC>vcvarsall.bat amd64