命令xcopy是您正在寻找的.例:
原文链接:https://www.f2er.com/windows/370902.htmlxcopy source destination /E /C /H /R /K /O /Y
上面的命令将源复制到目标,文件和目录(包括空的),不会停止出错,将复制隐藏和系统文件,将覆盖只读文件,将保留属性和所有权/ ACL信息,并将抑制提示覆盖现有目标文件.
/E Copies directories and subdirectories,including empty ones. Same as /S /E. May be used to modify /T. /C Continues copying even if errors occur. /H Copies hidden and system files also. /R Overwrites read-only files. /K Copies attributes. Normal Xcopy will reset read-only attributes. /O Copies file ownership and ACL information. /Y Suppresses prompting to confirm you want to overwrite an existing destination file.
有关更多信息,请输入xcopy /?和你的命令行.