views:

22

answers:

2

Hello,

I am using VC command-line utilities (cl.exe), and I am getting annoyed by the fact that I have to manually run vcvars32.bat whenever I restart my console... Is there a way to automatically run a batch file on console start-up? Thanks!

P.S: I am using Visual Studio 2010 version on Windows 7.

+2  A: 

Check in the start menu under Visual Studio 2010/Tools or thereabouts; there should be a shortcut to a console that automatically runs the batch file.

Gordon Tisher
+1, there is: "Visual Studio Command Prompt". Just copy it to the desktop. Give it a short-cut key.
Hans Passant
A: 

Got it:

http://msdn.microsoft.com/en-us/library/ms229859.aspx

Click Start, point to All Programs, point to Microsoft Visual Studio, point to Visual Studio Tools, and then click Visual Studio Command Prompt.

Midnight Blue