情况:我有一台笔记本电脑.其中一件令人疲惫不堪的事情就是电池没电了,电源线很容易从后面拉出来.
我最近收到了一台非便携式笔记本电脑,我正在复制从旧到新的所有内容.我正在尝试从旧机器到外部硬盘驱动器xcopy c:*.*,但由于线缆频繁拉出,xcopy经常被中断.
我需要的是XCopy中的一个开关,它将复制除目标文件夹中已存在的文件之外的其他内容 - 与/ U开关的行为完全相反.
有谁知道这样做的方法?
Edw*_*lde 15
我发现RoboCopy是xcopy的一个很好的替代品.它更好地支持高延迟连接,并支持恢复副本.
编辑 Robocopy是Windows Vista和Windows Server 2008的标准功能.
Robocopy作为Windows Server 2003资源工具包的一部分提供,可以从Microsoft下载站点下载.
一个非常简单的GUI也已发布在technet上的RoboCopy http://technet.microsoft.com/en-us/magazine/cc160891.aspx
/ D可能正是您要找的.我发现备份工作速度非常快,因为不会复制现有文件.
xcopy "O:\*.*" N:\Whatever /C /D /S /H
/C Continues copying even if errors occur.
/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.
/S Copies directories and subdirectories except empty ones.
/H Copies hidden and system files also.
Run Code Online (Sandbox Code Playgroud)
更多信息:http://www.computerhope.com/xcopyhlp.htm
归档时间: |
|
查看次数: |
18710 次 |
最近记录: |