Command Prompt & Batch Files

  • Thread starter Thread starter Herb Stevenson
  • Start date Start date
H

Herb Stevenson

Hello all. I need to set up a batch file to work w/ the Visual Studio.NET
2003 command prompt. However, when I run the batch file it uses the
standard command prompt. Is there a way to differentiate batch files
between the two prompts? Also, where might I find information on the
differences between the 2 prompts?

Thanks,
Herb
 
Add the following as the first line in your batch file.

@Call "C:\Program Files\Microsoft Visual Studio .NET
2003\Common\Tools\VCVars.bat"

(watch for line wrap)

The VS command prompt still uses cmd.exe, it just sets some ENV variables
from the above batch file.
 
Jim,
Thanks for the tip. That seemed to work. I just had to adjust the path to
"C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\Tools\vsvars32.bat"
 
Back
Top