Command Prompt & Batch Files

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
 
J

Jim Hughes

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.
 
H

Herb Stevenson

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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top