Avatar of Brian Pierce
Brian PierceFlag for United Kingdom of Great Britain and Northern Ireland asked on

Delete files in foder and sub folders ending in COPY ?

I have a computer that contains lots of photos in subfolders, many files are duplicated with the word 'copy' appended to the filename.

Is there a way to delete these copies which is less tedious than manually selecting them?
Microsoft Legacy OSWindows OSWindows 7

Avatar of undefined
Last Comment

8/22/2022 - Mon

Robert Retzer

I have had good luck with the duplicate cleaner, as mentioned by activematx. It is a good application and it is free. It takes little space on the hard drive and uses little system resources.
Brian Pierce

I was rather looking for a script which deleted files with the word COPY in the filename .
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Brian Pierce

Thanks for the warnings - its just that the duplicate file finder method can be tedious - the files in question are all images and will not have the word 'copy' in them normally - they are usually just the names assigned to images by the camera eg IMG08252.CR2.

Its just that in many cases there are copies produced due to windows seemingly wanting to create copies of files for no apparent reason when the user tries to select multiple files with the CTRL key held down.

Thank you KCTS

I know the scenario only too well, and I'm sure it has happened to us all at one time.  You have a folder open in Windows Explorer and are in the process of selecting multiple files with the Ctrl + Click method, but as you click on the next one you accidentally drag the mouse just as you click (left part of screenshot) and it drags all selected files.  This then creates copies of as many files as you had selected, with the names of the new files all prepended by "Copy of " (right part of screenshot).
.That being the case, unless the behaviour differs between Windows versions, surely your file search will have to be for the prepended "copy of" in the file names:
"Copy of *.*"    or    "Copy of *.cr2"
and not the word "copy" appended to the file names:
 "*copy.*"     or    "*copy.cr2"