• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 491
  • Last Modified:

visual studio command line

I am trying to automate a visual studio 2008 build through the command line.  I perform the following actions in a batch file to get the visual studio command line "plug-in" commands to work:

cd c:\Program Files\Microsoft Visual Studio 9.0\VC
vcvarsall.bat

My problem is that after I run this command, it will not run any further command line arguments from a batch file.  It's odd, because I can manually enter commands after the above lines have run.

I have to have commands following the above commands in a batch file.  Is this possible?  Has anyone ever seen this before?
0
dchau12
Asked:
dchau12
1 Solution
 
NotLogicalCommented:
I presume that your batch file is composed of something like this:

@echo off
cd c:\Program Files\Microsoft Visual Studio 9.0\VC
vcvarsall.bat
...other steps here...

The following small change should fix this for you:

@echo off
cd c:\Program Files\Microsoft Visual Studio 9.0\VC
call vcvarsall.bat
...other steps here...

Cheers,

NotLogical
0
 
dchau12Author Commented:
god damnit.  Do you know how much time I spent trying to figure this out?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now