Make command prompt open when bat file starts

I want my batch file to remain open after processing is complete.

Here is my code:

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

It closes instantly after starting the build ant. Any ideas?

Thank.

+3
source share
1 answer

Change the line:

ant >> transform.log

to

CALL ant >> transform.log

This is required when running one batch file from another.

+5
source

Source: https://habr.com/ru/post/1770771/


All Articles