Xcopy命令排除文件和文件夹 [英] Xcopy Command excluding files and folders

查看:1708
本文介绍了Xcopy命令排除文件和文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将目录中的文件和文件夹复制到不包括文件和文件夹列表的其他文件夹。这是可能的。

I want to copy files and folders in a directory to another folder excluding a list of files and folders.Is that possible.

文件:

 xcopy c:\t1 c:\t2 /EXCLUDE:exclusion.txt

但它一直说读不能读文件:exclusion.txt

But it keeps saying read cant read file : exclusion.txt

感谢

推荐答案

到排除文件的路径:例如..

Just give full path to exclusion file: eg..

- - - - - - xcopy c:\t1 c:\t2 /EXCLUDE:list-of-excluded-files.txt

-- no - - - - -xcopy c:\t1 c:\t2 /EXCLUDE:list-of-excluded-files.txt

正确 - - xcopy c:\t1 c:\t2 /EXCLUDE:C:\list-of-excluded-files.txt

在此示例中,文件将位于 C:\list-of-excluded-files.txt

In this example the file would be located " C:\list-of-excluded-files.txt "

或...

正确 - - - xcopy c:\t1 c :\t2 /EXCLUDE:C:\mybatch\list-of-excluded-files.txt

correct - - - xcopy c:\t1 c:\t2 /EXCLUDE:C:\mybatch\list-of-excluded-files.txt

在此示例中,文件

完整路径修复语法错误。

Full path fixes syntax error.

这篇关于Xcopy命令排除文件和文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆