473,394 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Command Prompt & Batch Files

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
Jul 21 '05 #1
2 2696
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" <ta*******@hotmail.com> wrote in message
news:uc**************@TK2MSFTNGP12.phx.gbl...
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

Jul 21 '05 #2
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" <NO*********@Hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
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" <ta*******@hotmail.com> wrote in message
news:uc**************@TK2MSFTNGP12.phx.gbl...
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


Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dennis Gaida | last post by:
Hi there, I want to upload some exported reports to a FTP Server, for this I use a command line FTP utility. My Database sits in C:\Documents and Settings\Dennis\My Documents\Database The FTP...
3
by: michael.esposito | last post by:
I need to install the Office XP PIA files on a server, and the Microsoft instructions says it needs the .Net Command Prompt to run them. I do not have Visual Studio installed on the server, nor do...
2
by: Herb Stevenson | last post by:
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...
6
by: Jwolf | last post by:
I have .net 2002 edu version and when it installed there was a shortcut to the .net command prompt. My CLR disk is scratched so I can't reinstall and so I just downloaded express. I dont know...
1
by: Fester Bestertester | last post by:
Okay, here's the bonehead question of the day: Is there some syntax or command line switch that I can use to call a Public Sub from a command line? If so, what is the syntax? The purpose: if I...
6
by: Shooter4Life8 | last post by:
Hi, I am having trouble figureing out the best way to open a command prompt then write lines to it in VB.NET. Currently I have this code, but it execute's too fast I think because Dim psi As...
4
by: Ronald S. Cook | last post by:
Currently (manually), I 1) open a Windows SDK Command Prompt and 2) navigate to a particular folder. Then I 3) type a command and press enter. The command is irrelevant (WCF-related) but here it...
4
by: =?Utf-8?B?WUlndWNoaQ==?= | last post by:
Hi , I want to run a batch file from the c# code. Every time i run the batch file command prompt is displayed. I do not want to show this command prompt. Is there any way to suppress the...
8
by: Tuanisviet | last post by:
Hey folks! First off, I don't know which section of the forum this needed to be so I put it in Windows since the majority of it is MS-DOS. Sorry if it's in the wrong section. Now, I have a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.