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"

xcopy %SOURCE% %DEST% /S /EXCLUDE:%EXLUDEFILE%
Pause
------------------------------------------------------------------------------------------

The EX.txt file contains the following entries
________________________________________________________
.MOV
.M2V
.ISO
.MP4
.AVI
.CFA
.RAR
.WAV
.wav
________________________________________________________


But it still copies .wav files to the destination.
Any ideas?
koossaAsked:
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.

johnny_the_knifeCommented:
Have you tried modifying your exclude file such that is reads

*.wav
*.mov

etc?
0
koossaAuthor Commented:
Hi

Just tried it, but still the same!
0
johnny_the_knifeCommented:
Is the exclude working for the orher file types you have listed or is it failing completely.
0
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?
0
marcelo_coyoteCommented:
Hi, you have a discrepancy between the definition and the calling of a variable

set EXCLUDEFILE="C:\development\EX.txt"
xcopy %SOURCE% %DEST% /S /EXCLUDE:%EXLUDEFILE% ---should read EXCLUDEFILE

0

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.
0
koossaAuthor Commented:
Great, Thanks!!

0
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.