Proceed batch script after using a cmd

September 17, 2012 at 01:53:24
Specs: Windows 7
Hello, here is a part of my batch code:
cmd /k ant -logfile D:\projects\compile\buildlog\!title!.txt  
cd %CURRENTDIR%\
call %CURRENTDIR%\compiler.bat 

After compiling the prompt won't close now because of the /k,
but the script does close, and I wan't to avoid that.
I want to proceed with cd%CURRENTDIR%\... ect.

See More: Proceed batch script after using a cmd

Report •


#1
September 17, 2012 at 15:52:56
End compiler.bat with EXIT /B

When your only tool is a hammer, every problem looks like a nail.


Report •

#2
September 18, 2012 at 14:57:53
the prompt won't close now because of the /k
Then don't use it.
ant -logfile D:\projects\compile\buildlog\!title!.txt  
cd %CURRENTDIR%\
call %CURRENTDIR%\compiler.bat 

How To Ask Questions The Smart Way


Report •

Related Solutions


Ask Question