🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.commandlinetools
2 messages
2 total messages Started by Debbie Erickson Wed, 05 Mar 2008 18:37
Environment Vars stepping on each other
#179
Author: Debbie Erickson
Date: Wed, 05 Mar 2008 18:37
12 lines
1271 bytes
Hi.  I have a buildmachine and am doing 2 compiles at same time.  I set some vars in each batch file, like this:

set ROOTDIR=%CD%
set OUTPUTFILE=%ROOTDIR%\output.txt

The two compiles are colliding on each other because they are starting in different folders.

Is there a way to make the variable scope apply only to the batch using it?

Thanks!
Debbie Erickson
Re: Environment Vars stepping on each other
#181
Author: Ebbe Kristensen
Date: Wed, 12 Mar 2008 10:14
10 lines
1133 bytes
Debbie Erickson wrote:
> Hi.  I have a buildmachine and am doing 2 compiles at same time.  I
> set some vars in each batch file, like this:
>
> set ROOTDIR=%CD%
> set OUTPUTFILE=%ROOTDIR%\output.txt

Add SETLOCAL at the top of your batch file.

Ebbe 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads