I have one root directory from where I am running master batch file, which call another batch file(2nd batch file) present in sub directory of root directory.
After the execution of 2nd batch file, would like to remain in root directory:
@echo off set root_dir=C:\Users\milan\Desktop cd "%root_dir%\2nd_dir" call 2nd_batch.bat echo %cd%
Last echo command should show me the patch of root directory.I tried doing this
But it didn't work.