Task scheduler Timestamp

  • Thread starter Thread starter Dwane
  • Start date Start date
D

Dwane

Good morning.

I have set up a task using task scheduler that executes a batch file
and then puts a annotation into a text file to show that it has run. I
have done so by making the command c:\mytest.bat >> mytest.txt. It
runs well. However, in mytest.txt, I would like for it to annotate a
timestamp for every new entry. Can someone help with this?

Thanks
 
Dwane said:
Good morning.

I have set up a task using task scheduler that executes a batch file
and then puts a annotation into a text file to show that it has run. I
have done so by making the command c:\mytest.bat >> mytest.txt. It
runs well. However, in mytest.txt, I would like for it to annotate a
timestamp for every new entry. Can someone help with this?

Thanks


Inside your mytest.bat

add tow lines

date /T
time /T
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top