Let's say I have two batch files, foo.bat and bar.bat, that are located like so:
root\foo.bat
root\grub\bar.bat
Let's also say that both files contain a line that sets a variable, like so:
set PWD=%cd%
Now, if foo.bat calls .\grub\bar.bat, will bar.bat override the PWD variable set in foo.bat?