Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

log file

0 views
Skip to first unread message

Smiles

unread,
Nov 20, 2009, 8:17:14 AM11/20/09
to
Good day

I have a batch file running fine in xp but now a need for a log file to
be created and I am lost on how to do it

What I need to do is add one line at the end of a text document with the
currant date.

Question how do I apend this value to the file?

thanks

Pegasus

unread,
Nov 20, 2009, 8:59:42 AM11/20/09
to

"Smiles" <smile_i...@hotmail.com> wrote in message
news:rFwNm.21130$gi1....@newsfe19.iad...

Like so:
@echo off
[Your code goes here]
echo %date% %time:~0,5% >> c:\Logfile.txt


Smiles

unread,
Nov 21, 2009, 8:15:48 AM11/21/09
to
thanks Pegasus
smiles
0 new messages