Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-16-2009, 03:29 PM
TAQ TAQ is online now
Registered User
 
Join Date: 12-16-2009
Posts: 3
[RESOLVED] Pulling user environment variables from batch script?

Hi, New to VBP and trying to port our existing scripts.

For our build process we have a batch script that runs our build step. It sets about 100 user environment variables and then launches devenv.exe. This allows Visual Studio to run with all the necessary env variable paths it will need to do the build.

How can I mimic this in VBP. I see the SET MACRO command looks like it will let me do it one-by-one. But I really don't want to type 100 user env variables in manually.

How can I call the batch file to load the user vars into the script from the batch file so that when I run the Make VS 2008 command, it will have all the necessary env variables? Or maybe there is a simple textarea box that i can just copy paste them easily all at once:
TEST=C:\
BASE=%WINDIR%\Base
Z=%BASE%\blahblah


I've tried calling the batch file command right before the make command, but as I assumed, that didn't work.

Thanks

Last edited by TAQ; 12-16-2009 at 03:40 PM.
Reply With Quote
  #2  
Old 12-16-2009, 03:33 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
http://www.kinook.com/VisBuildPro/Ma...dvancedtab.htm
Reply With Quote
  #3  
Old 12-16-2009, 03:36 PM
TAQ TAQ is online now
Registered User
 
Join Date: 12-16-2009
Posts: 3
Ahh.. I see.. so I assume under the Make VS advanced tab I would add my batch file to the "Command to run before main command" section.

I'll give it a try

Thanks!
Reply With Quote
  #4  
Old 12-16-2009, 03:40 PM
TAQ TAQ is online now
Registered User
 
Join Date: 12-16-2009
Posts: 3
Excellent! It works. Thanks!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 05:15 AM.


Copyright © 1999-2023 Kinook Software, Inc.