home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch.nt      Fun with Windows NT batch files      68,980 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 67,044 of 68,980   
   B00ze to John Gray   
   Re: In second batch file, find the name    
   07 Sep 17 23:00:56   
   
   From: B00ze64@hotmail.com   
      
   On 2017-09-07 08:26, John Gray  wrote:   
      
   > To my surprise, that environment variable is available both before and after   
   setlocal in the called.bat file.   
      
   SETLOCAL creates a COPY of the environment when it is executed. So the   
   value is still there, but if you modify it the new value will not   
   propagate to the calling environment.   
      
   Regards,   
      
   --   
   ! _\|/_  Sylvain / B00ze64@hotmail.com   
   ! (o o)   Member:David-Suzuki-Fdn/EFF/Red+Cross/SPCA/Planetary-Society   
   oO-( )-Oo  I'm a lawyer. Honest? No, the usual kind.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca