cmd.exe: setlocal and endlocal should preserve drive and directory.