[windows2000] Re: Nested Environ Variables question

  • From: "Sullivan, Glenn" <GSullivan@xxxxxxxxxxxxxx>
  • To: "'windows2000@xxxxxxxxxxxxx'" <windows2000@xxxxxxxxxxxxx>
  • Date: Fri, 4 Oct 2002 11:56:16 -0400

If it is inside a script, you need to look at SETLOCAL
ENABLEDELAYEDEXPANSION.

Look at SETLOCAL /? and SET /? at the command prompt, or I can give you an
example if you need one...

Glenn Sullivan, MCSE+I  MCDBA
David Clark Company Inc.


-----Original Message-----
From: Scott Ehrlich [mailto:scott@xxxxxxxxxx]
Sent: Friday, October 04, 2002 11:36 AM
To: windows2000@xxxxxxxxxxxxx
Subject: [windows2000] Nested Environ Variables question



We have a user with the following question and is something I've never
tried:

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 for any help.

Scott


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

http://thethin.net/win2000list.cfm

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

http://thethin.net/win2000list.cfm

Other related posts: