i calling c# console application via batch file, in order send application output text file, date/time etc.
the problem have when console application completes, leaves batch window open, because there pause (the c# equivalent), key must pressed window close. means not know when job has finished.
is there way can make cmd window close when application finished, without having change c# application code?
@echo================================================================================ @echo application running , may take time. please wait... @echo================================================================================ @echo off c:\applications\job\job.exe > c:\applications\job\job_output\"output_%date:/=-% %time::=-%.txt"
try (note collated dot after echo):
echo.| c:\applications\job\job.exe > c:\applications\job\job_output\"output_%date:/=-% %time::=-%.txt" i have tried pause , works well:
echo.| pause echo. not echo. prints newline, need trigger pause.
Comments
Post a Comment