"Rebuild all" from a command line?

  • Thread starter Thread starter Bob Altman
  • Start date Start date
B

Bob Altman

Hi all,

I have a bunch of VB and VC++ solution files. I would like to write a batch
file that tells each solution file to "Rebuild All". To complicate things,
I don't want to assume that Visual Studio is installed on the C drive (it
may be installed on some other drive). Can this be done easily?

Thanks!

- Bob
 
Hi

First of all, I would like to confirm my understanding of your issue.
From your description, I understand that you wants to use command line to
compile the vs.net solutions.
Have I fully understood you? If there is anything I misunderstood, please
feel free to let me know.

We can use the devenv.exe to compile the solution.
Devenv Command Line Switches
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/ht
ml/vxgrfCommandLineSwitches.asp

The devenv.exe is located at the path below.
C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\devenv.exe

Also we can retrieve the path from the registry.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\Setup\VS\VS7Environme
ntLocation
C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\devenv.exe

We can use the WScript to do that.
HOWTO: Use the Windows Script Host to Read, Write, and Delete Registry Keys
http://support.microsoft.com/?id=244675

Please apply my suggestion above and let me know if it helps resolve your
problem.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top