[cvsnt] DOS
Dave
anonymous at no.isp
Tue Jun 10 16:39:22 BST 2003
I posted this a few weeks ago. I use a bat file that contains:
FOR /F "TOKENS=2-4 DELIMS=/ " %%F IN ('DATE /T') DO (SET
MYDATE=%%F-%%G-%%H)
net stop cvs
xcopy "D:\Data Files\CVS\cvsrepo" "D:\Data Files\CVS\cvsbackup" /Q
/S /C /H /R /O /Y /I
net start cvs
ren "cvsbackup" "cvsbackup %MYDATE%"
I end up with a folder named "cvsbackup 05-23-2003", for example. If you
want to reformat the date, %%F = month, %%G = day, and %%H = year. Just
move them around for the date format you want.
--
Dave
"stirkus ersu venete"
"Mac" <pragcvs at yahoo.com> wrote in message
news:mailman.4.1054840182.23685.cvsnt at cvsnt.org...
Hi everybody,
This question not much cvs related. I created a back up copy for cvs repos
and ftp that copy from NT machine using .bat file. However, I need to
concatenate the sysdate to the file name so it won't be overwritten when I
import the next back up copy.
Anyone know how to rename the file in the .bat file and attache the sysdate
to it.
For example:
....
rename cvsbkup cvsbkup_sysdate
Thanks.
---------------------------------
Do you Yahoo!?
Free online calendar with sync to Outlook(TM).
More information about the cvsnt
mailing list