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.
%TEMP%
%TMP%
$
_