From How to add a program to a list with right click button?, I could add "command" button to open command line prompt using right click.
I normally open the command line prompt to use Visual Studio tools, so running 'vcvarsall.bat' in the command line is the first thing that I normally do.
How can I automatize this? I mean, how can I run a batchfile automatically to setup environment whenever a command line shell is invoked?
Visual Studio provides a shortcut in
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Visual Studio 2010\Visual Studio Tools named 'Visual Studio Command Prompt (2010)' to do the setup environment for me. I thought about running this instead of command line, but the start in directory is fixed to the directory in VS2010, so I don't think that's a good idea.