Answer» Hello,
I'm currently using DOS batch FILES to create nightly backups of misc files across a local network. I would like to have the batch file also create a .TXT file that is generated upon completion of the backup which includes the date and time. In addition, i would like to have the name of the TEXT file use the SYSTEM Date as the name of the file. Is there a way of doing this?
Many thanks
FeoleYou didn't mention an OS. This will work in the XP cmd environment. There are other ways to do this in other OSes.
Code: [Select]ECHO off for /f "tokens=2-4 delims=/ " %%i in ("%date%") do set thedate=%%K%%i%%j echo Backup created on %date% at %time% > Backup%thedate%.txt
Happy Computing. 8-)
|