I have a .exe file to download data from a chip. I want to know the start time and the exit time of this program, using a .bat file, but I have no idea how to do this.
Please help me!
Thanks
I have a .exe file to download data from a chip. I want to know the start time and the exit time of this program, using a .bat file, but I have no idea how to do this.
Please help me!
Thanks
ECHO start: %time%
yourexecutable
echo end : %time%
is the way I'd do it.
In case yourexecutable scrolls / pages start time out of screen I'd prefer:
Set StartTime=%time%
ECHO start: %StartTime%
yourexecutable
Set EndTime=%time%
Echo start: %StartTime%
Echo end : %EndTime%
Echo Yourexecutable ran form %StartTime% to %EndTime% >>"YourExe.Log"
Pause