Command line XCOPY Exclude

I've got a batch file:
set SOURCE="C:\development\*.*"
REM set DEST="E:\development\"
set DEST="C:\Users\RENDER PC\Desktop\development\"
set EXCLUDEFILE="C:\development\EX.txt"


The EX.txt file contains the following entries

But it still copies .wav files to the destination.
Any ideas?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Have you tried modifying your exclude file such that is reads


koossaAuthor Commented:

Just tried it, but still the same!
Is the exclude working for the orher file types you have listed or is it failing completely.
Learn Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

koossaAuthor Commented:
I've spot check the destination folder on AVI
There are AVI files in the destination folder, but there are more AVI files in the source folder.
So I don't know why this is happening?
Hi, you have a discrepancy between the definition and the calling of a variable

set EXCLUDEFILE="C:\development\EX.txt"


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
Yep, that has to be the error. The exclude file works with simple string compare (case insensitive). And works pretty well for me.
koossaAuthor Commented:
Great, Thanks!!

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft DOS

From novice to tech pro — start learning today.