|
Answer» I WANT to back-up my folder from drive F:\ to c:\ like this... f:\folder1\ to...->>>> c:\06/04/2010\here's the code... but the question is... what if i back-up the folder at the same date?
@ECHO OFF echo Y | xcopy /e D:\APPS\RBA-VRSN.330\*.* C:\BACK-UP\RECENT-BK-UP\*.*>NUL for /f "tokens=1-5 delims=/ " %%d in ("%date%") do rename "C:\BACK-UP\RECENT-BK-UP" %%e-%%f-%%g exit
what I want is something like this... let's say 06-04-2010 ALREADY exist then I want to rename "RECENT-BK-UP" TO 06-04-2010.a or if exist 06-04-2010.b or if exist 06-04-2010.c or if exist 06-04-2010.d and so on...
thanks in ADVANCE!
|