运行bat文件时使命令行保持打开状态

joe*_*joe 3 ant batch-file

我希望我的批处理文件在处理完成后保持打开状态.

这是我的代码:

set CLASSPATH=C:\XSLTANT\examples\word_transform\apache-ant-1.8.1\bin
set PATH=%CLASSPATH%
ant >> transform.log
echo "See transform.log for results"
pause
Run Code Online (Sandbox Code Playgroud)

它在运行ant构建后立即关闭.有任何想法吗?

谢谢.

Chr*_*fer 5

换行:

ant >> transform.log
Run Code Online (Sandbox Code Playgroud)

CALL ant >> transform.log
Run Code Online (Sandbox Code Playgroud)

从另一个批处理文件运行时,这是必需的.