Step 1. Create a text file with just the enter or return keystroke in it.
Step 2. Pipe the text file into the time command (Time<Textfile) and the
results to your log (Time<Textfile >> Logfile).
This will also enter a line for "Enter new time:" into your log.
Step 3. Repeat step 2 with Date as the command.
Q-Factor Consulting
Richard Quilhot, C.N.A.
Mail to: [log in to unmask]
-----Original Message-----
From: PCSOFT - Personal Computer software discussion list
[mailto:[log in to unmask]]On Behalf Of Mike Curtis
Sent: Sunday, August 29, 1999 8:37 PM
To: [log in to unmask]
Subject: [PCSOFT] Date and time in batch file
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
PCSOFT maintains many useful files for download
visit our download web page at:
http://nospin.com/pc/files.html
|