how do i copy files from 1 folder to another while excluding certain file types?

六眼飞鱼酱① 提交于 2019-12-11 15:57:25

问题


I am using windows vista.

i have a folder containing many files and subfolders.

i need to copy the contents of that folder to another without including any files of the extension .txt.

how do i do that?


回答1:


you can use xcopy.. Then provide the /EXCLUDE:file1[+file2][+file3]... option to exclude .txt files




回答2:


On Windows Vista and further you have the tool Robocopy, a more powerful copy command which allows you to perform tasks as yours

For windows XP can be downloaded from MS from here

I suggest you running robocopy /? to see the options and take a look at /XF



来源:https://stackoverflow.com/questions/2300863/how-do-i-copy-files-from-1-folder-to-another-while-excluding-certain-file-types

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!