outter.bat
- echo "start to call inner bat here"
- inner.bat //第2行
- echo "Back to outter bat" //注意这一行,它并未运行
- echo "inner bat has been called."
正确的方法应该是:在所调用的批处理文件名前加上call,把文件的第2行变为call inner.bat即可,如下:
outter.bat
- echo "start to call inner bat here"
- call inner.bat //第2行
- echo "Back to outter bat" //注意这一行,它并未运行
- echo "inner bat has been called."