Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to output the time to a file (redirect the time from a batch file)

Status
Not open for further replies.

jeep2001

Programmer
Dec 15, 2005
134
US
I have a nightly batch file that copies all my development access apps onto the server...I would like to add to the batch file, when it has finished the copy, I would like to write a little file to the folder with the time the file was copied....
something like :
G:
XCOPY C: /Y
echo > SPECIALIST Database copied ... 08:15AM

or something like that...

Thanks
 
I imagine any variation around this

Code:
date /t > file.txt
time /t > file.xtx

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top