I have scrip contain command line:
set dir=%1
cd %dir%
test.bat
echo successful
When run this script, file test.bat (this file run phpunit) run complete then this script don’t run command line echo successful.
So, how to try run to eof script.
Use
call test.bat.When you try running a batch file from another batch like in your question control does not pass back to your calling batch.
Side note: I’d usually use
pushd/popdfor going into directories from batch files. At least I prefer when a batch file doesn’t have a side-effect on the shell I’m working on (similar rationale forsetlocal). Also this solves the problem when you pass a directory on another drive (although you could docd /din that case.