473,395 Members | 1,442 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,395 software developers and data experts.

"Rebuild all" from a command line?

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
Nov 20 '05 #1
2 2159
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/de...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.

Nov 20 '05 #2
Hi, Peter,

Thanks, that is exactly what I am looking for!

- Bob

""Peter Huang"" <v-******@online.microsoft.com> wrote in message
news:rQ**************@cpmsftngxa10.phx.gbl...
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/de...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.

Nov 20 '05 #3

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

Similar topics

1
by: Richard | last post by:
I'm using a .net Setup Project to install my .net Windows Application. I want the application installed for "all users". The Installation Folder dialog in the User Interface Editor includes a nice...
10
by: KENNY L. CHEN | last post by:
Dear experts, I have two tables in my Oracle 8i database: TEST (COL1,COl2,REC_NO) and TEST1 (COL1,COL2,REC_NO). Both tables are unique-indexed on (COL1,COL2,REC_NO). I think the following...
3
by: Not Me | last post by:
Hi, Is there any criteria I can use in my where clause to say 'anything'? Maybe like the _ used in some languages? For my example, I want to use an inline-if, so if a checkbox is ticked I say...
4
by: meganrobertson22 | last post by:
Hi Everyone- I have a question about how to add and then use the "All" selection in a combo box. I am trying to figure out how to: (1) add "All" as a selection to a combo box and then (2)...
2
by: Keith Smith | last post by:
What is the difference between "build" and "rebuild" when building a project?
8
by: Bennett Haselton | last post by:
If I create a new C# Web Project in Visual Studio and add this to the Page_Load method for WebForm1: Response.Write("firsttime"); then hitting F5 to debug the project of course shows the...
1
by: mac | last post by:
I just put C# express editiion on my son's computer so he can learn how to code, and we've run into a weird problem. Whenever he makes a change to his code and hits F6 (build) the IDE reports...
2
by: José Joye | last post by:
Hello, When openning a solution, all projects are expended in the Solution Explorer, is there a magic key to "reduce" all the project? Thanks, José
3
by: Jimmy | last post by:
I use a combo box to filter the results of a form. Sql for combo box is... SELECT StatusPriority, Status FROM tblStatus UNION Select = 0 as AllChoice, "Show All" as Bogus From tblStatus ORDER...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.