[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 485
  • 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

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

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