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,500 of 68,980    |
|    Auric__ to Kenny McCormack    |
|    Re: About setlocal/endlocal...    |
|    11 Feb 20 12:20:59    |
      From: not.my.real@email.address              Kenny McCormack wrote:              > 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?              I just checked under NT 3.51, XP, and Win7. All acted as expected (i.e.       displayed "X:\Bob\Carol", not "X:\foo\bar"). [shrug]              --       In the end, there's no psychic explosion, there's no decimated city...       There's just a man, cradling a dead girl in his arms.              --- 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