PC Review


Reply
Thread Tools Rate Thread

Command Prompt & Batch Files

 
 
Herb Stevenson
Guest
Posts: n/a
 
      14th Jun 2004
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


 
Reply With Quote
 
 
 
 
Jim Hughes
Guest
Posts: n/a
 
      15th Jun 2004
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.

"Herb Stevenson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Herb Stevenson
Guest
Posts: n/a
 
      15th Jun 2004
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"



"Jim Hughes" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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.
>
> "Herb Stevenson" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command prompt / batch file equivalent of UNIX '&' MS Microsoft Windows 2000 CMD Promt 6 12th May 2006 05:27 PM
Macros that conmntain runapp and it's a command prompt executing batch files Gary J. Dikkema Microsoft Access Macros 2 12th Apr 2006 05:51 PM
UTF-8, command prompt, notepad, batch files =?Utf-8?B?QW50dGk=?= Windows XP General 0 16th Dec 2005 02:13 PM
DOS .... Command Prompt ..... Batch Files Microsoft Windows 2000 CMD Promt 2 26th Jun 2005 05:23 PM
change date format when using command prompt batch bobm@sbc Microsoft Windows 2000 1 27th Aug 2003 06:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:57 PM.