1.cmd to Xcopytime.bat directory, execute command xcopytime sourcefolder destinationfolder dateTime
2.exclude.txt is an excluded object and does not copy the files or folders listed in it
Example:
F:\bat>xcopytime E:\workspace F:\website\ 06-30-2010
EXCLUDE.txt content, in the line below
------------------------------
. classpath
. class
. log
------------------------------
Copy Code code as follows:
@echo off
rem xcopy2. BAT transfers all files in all subdirectories of
REM the source drive or directory (% 1) to the destination
REM Drive or directory (% 2)
Rem lastmodifytime (% 3)
xcopy%1%2/s/d:%3/exclude:exclude.txt/y
if Errorle Vel 4 goto lowmemory
if errorlevel 2 goto abort
if errorlevel 0 goto exit
: Lowmemory
Echo insuffic Ient memory to copy files or
Echo Invalid drive or command-line syntax.
Goto exit
: Abort
echo You pressed CTRL + C to-end the copy operation.
Goto exit
: Exit
==================================================================
. Classpath
. class
. Log