visual studio command line

Posted on 2008-11-07
Last Modified: 2012-05-05
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

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?
Question by:dchau12
    LVL 8

    Accepted Solution

    I presume that your batch file is composed of something like this:

    @echo off
    cd c:\Program Files\Microsoft Visual Studio 9.0\VC
    ...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...



    Author Closing Comment

    god damnit.  Do you know how much time I spent trying to figure this out?

    Featured Post

    Promote certifications in your email signature

    Has your company recently won an award or achieved a certification? They'll no doubt want to show it off. Email signature images used to promote certifications & awards can instantly establish credibility with a recipient and provide you with numerous benefits.

    Join & Write a Comment

    How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
    NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
    Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now