Tech Support > Operating Systems > Windows 95 > print start time of a batch file (at it's completion)?
print start time of a batch file (at it's completion)?
Posted by Polaris on June 3rd, 2005


Hi :

I have a batch file doing many tasks. I'd like to show how long it has taken
for the batch file to complete all the tasks. I'd like to print out the
start time and end time at the END OF the batch file.

I know "time /t" will print out the current time, but do not know how to
make a variable to store the start time (at the start of the batch file) and
then print it out at the end of the batch file.

Thanks In Advance !
Polaris


Posted by LB@notmine.com on June 4th, 2005


Polaris wrote:

This group is about BASIC language.
Try alt.msdos.batch for an answer.

LB



Posted by Michael Bednarek on June 4th, 2005


On Fri, 3 Jun 2005 11:49:28 -0700, "Polaris" <etpolaris@hotmail.com>
wrote in microsoft.public.basic.dos:

This might work:
FOR /F "tokens=*" %%i IN ('TIME /T') DO SET starttime=%%i

--
Michael Bednarek http://mbednarek.com/ "POST NO BILLS"


Similar Posts