dos xcopy使用
2012-07-15 02:26 youxin 阅读(322) 评论(0) 收藏 举报Copies files and directory trees.
XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W]
[/C] [/I] [/Q] [/F] [/L] [/G] [/H] [/R] [/T] [/U]
[/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z]
[/EXCLUDE:file1[+file2][+file3]...]
/D:m-d-y Copies files changed on or after the specified date. If no date is given, copies only those files whose source time is newer than the destination time.
/-Y Causes prompting to confirm you want to overwrite an existing destination file.
1 Copy new and newer files only
Description
XCOPY’s /D option makes sure that only new and newer files will be copied.
source can be a file mask e.g.: *.*, my*.*, my*.log, directory\*.*
destination can be a directory e.g.: ., directory
Code
xcopy "%source%" "%destination%" /D /Y
浙公网安备 33010602011771号