I know this is a bit outdated, but if someone is looking for a way to get the compiler to work from the command line; here is what i did to launch it.
I use Win7 32bit and Visual Studio 2010. I created a small batch file in C: \ Windows. open the cmd prompt on C: \ Windows as an administrator, then type the following:
copy con cl.bat @"C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\vcvars32" %1 %2 %3 %4 %5 %6 @"C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\cl" %1 %2 %3 %4 %5 %6
then press f6 and press Enter again.
Obviously, the path you will use is the installation path to where you installed Visual Studio.
Now you have a working command line compiler from any location or directory in the windows. To verify this, go to the desktop and open the cmd command as admin; I prefer to use Ctrl + Shift and right click and then select a command prompt. At the command prompt, type "cl" (without quotation marks) and press enter. you will see the message "Configuring the environment for using Microsoft Visual Studio 2010 x86 tools"
type "cl" and press Enter and you will get information about the compiler. you are all ready to compile.
enjoy it!
quags Mar 08 2018-11-21T00: 00Z
source share