问题
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