[windows2000] Re: Nesting path statement revisited

  • From: "Costanzo, Ray" <rcostanzo@xxxxxxxxxxx>
  • To: "'windows2000@xxxxxxxxxxxxx'" <windows2000@xxxxxxxxxxxxx>
  • Date: Mon, 7 Oct 2002 12:31:50 -0400

Ah, gotcha.

Is this what you mean?


setlocal
set foo=C:\foodir
set bar=%foo%\bardir
echo %bar%
endlocal


That works for me and it echos C:\foodir\bardir

Ray at work

> -----Original Message-----
> From: Scott Ehrlich [mailto:scott@xxxxxxxxxx] 
> 
> 
> 
> Here is the user's question again:
> 
> "I'm trying to use environment variables within environment 
> variables. as 
> in foo = c:\foo and bar = %foo%\bar and such. I can't seem to get the 
> environemnt (this is the current users env BTW, not the 
> system variables) 
> to recursively expand these. Can that only be done w/ the 
> system environment?"
> 
> Thanks.
> 
> Scott
> 
> 
> At 12:16 PM 10/7/2002 -0400, you wrote:


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


==================================
To Unsubscribe, set digest or vacation
mode or view archives use the below link.

http://thethin.net/win2000list.cfm

Other related posts: