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 had my %TEMP%
and %TMP%
vars pointing to a directory that contained a $
. Replacing it with an _
solved the issue for me.
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
I had this issue with a cleared environment, and it was resolved (at least in part) by setting the TMP environment variable.