Exclude switch not working in XCOPY DOS command

I'd like to use the XCOPY command to copy files. I need to skip files with specific extensions. From the help screen, it looks like XCOPY would work.

I have the following
C:\exclude.txt

Contents of exclude.txt
*.zip
*.lck
*.fpc

C:\test has four files
One.lck
Two.lck
Three.lck
Yescopy.txt

C:\copytest is an empty directory

My command line
Xcopy c:\test\*.* c:\copytest /exclude:c:\exclude.txt

When I run this command, all four files from test are copied to copytest.


相關XCOPY其它屬性用法請執行 xcopy /? 查找.

來源:
http://www.csulb.edu/~murdock/xcopy.html
http://www.easywindows.com/easydos/edmessages/764.html

沒有留言: