dos xcopy使用
2012-07-15 02:26 youxin 阅读(313) 评论(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
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步