473,796 Members | 2,872 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"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 2175
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/vxgrfCommandLin eSwitches.asp

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

Also we can retrieve the path from the registry.

HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\VisualS tudio\7.1\Setup \VS\VS7Environm e
ntLocation
C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\ID E\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.m icrosoft.com> wrote in message
news:rQ******** ******@cpmsftng xa10.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/vxgrfCommandLin eSwitches.asp

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

Also we can retrieve the path from the registry.

HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\VisualS tudio\7.1\Setup \VS\VS7Environm e ntLocation
C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\ID E\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
5871
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 radio button for doing just that. But I want the installation to be silent. I achieve this by deleting all the forms from the User Interface Editor. But then the user can't select the radio button and I can't see a way of doing so...
10
12845
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 SQL commands will return the same result but one of my friends don't think so. He said "QUERY 1" will return 1 unsorted record (ROWNUM < 2 ) first then sort the result (ORDER BY COL1 ASC,
3
2143
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 where field=true, otherwise just let everything pass through. For checkboxes I know I can used iif(xxx,true,(true or false)) but I also wish to use strings, where iif(xxx,yyy,'*') doesn't work - as the search on
4
7194
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) how to use the selection "All" as criteria for a field in a query, which is used to generate data for a report.
2
10010
by: Keith Smith | last post by:
What is the difference between "build" and "rebuild" when building a project?
8
1544
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 WebForm with "firsttime" on the page. But if I then change it to Response.Write("secondtime") and hit F5, the changes don't take effect -- the WebForm still opens and displays
1
1907
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 that the build succeded. However, when he runs the program (Start without debugging), the new build IS NOT being run. He has to actually choose Build|Rebuild Solution from the menu for the new build to run. Just building with F6, or running with...
2
1274
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
2934
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 BY StatusPriority; AfterUpdate code from combo box is... If Me! = 0 Then DoCmd.ShowAllRecords Else
0
9679
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9527
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10172
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9050
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5441
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.