I have a batch file that i am testing, all i want to do is the following
CALL ping.bat
Then after that batch file has run i want to run ano
Not exactly sure what you wanted to do here, but I assume that you wanted to do this:
In that case, from your actual batch file, you should start ping.bat and ping2.bat like this:
::some code here
start /wait ping.bat
start /wait ping2.bat
::some code here
Then in both ping.bat and ping2.bat the last line should be exit. Their code should look like this:
::some code here, might be ping 127.0.0.1
exit
So now your actual batch file will start ping.bat and it will wait for it to finish (exit). Once the ping.bat closes, your actual batch file will go to the next line and it will start ping2.bat etc.