I would strongly recommend the use of "SETLOCAL" and "ENDLOCAL" in any bat-script that is to be called from another bat-script.