Hello,
I need a batch file to get the current date and time of my computer and put it in a text file every time I run it.But I need the most current date&time to replace the previous within the same text file, so that my file can have only one record, even if I run it multiple times.
I found this code:
<codeecho %date% %time% >> log.txt></code>
But this one just adds the next date under the previous one.
Your help would be greatly appreciated. Thanks in advance!
Reply to MR. Skitzo
|