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,498 of 68,980   
   Kenny McCormack to All   
   About setlocal/endlocal...   
   11 Feb 20 11:57:03   
   
   From: gazelle@shell.xmission.com   
      
   Interesting point here - curious if people have any memory of the history   
   of this.   
      
   ISTR that, back in the day, setlocal/endlocal did not preserve the current   
   directory info on drives other than the current one.  I.e., something like:   
      
   C:   
   cd X:\foo\bar   
   setlocal   
   cd X:\Bob\Carol   
   endlocal   
   cd X:   
      
   would display X:\Bob\Carol at the final line.  I.e., it would not get   
   restored to X:\foo\bar.   
      
   However, I just tested this on an XP system (with CMD.EXE), and it does do   
   the right thing.   
   (I.e., it goes back to X:\foo\bar)   
      
   Am I remembering things wrong, or did this change at some point?   
      
   And if it was changed, did it break any existing code?   
      
   --   
   No puppet.   
   No puppet.   
   You're a puppet.   
      
   --- 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