Mike, I use a utility called Xset which allows this and many other things.
Visit http://members.tripod.com/~marcstern/xset.htm
<http://members.tripod.com/~marcstern/xset.htm>
You could add the following to your code:
Xset logdate date YYYY-MM-DD
Echo %logdate% > a:\qcopy.log
Regards, Joe
-----Original Message-----
I am trying to write a batch file that will backup my
quicken files to floppy.
I would like to have the date and time written to a log file
when the files are
copied to the floppy. Is there a way to pass the date and
time without having
to press enter? Here is the file as I have it so far:
c:
cd\quicken\backup
xcopy32 *.* a: /r/i/c/h/k/e/y/f >>a:\qcopy.log
Thanks in advance for any help with this.
Mike Curits
PCSOFT maintains many useful files for download
visit our download web page at:
http://nospin.com/pc/files.html
|