Question Keep largest size of copies and move others to a backup folder

DynV

Distinguished
Aug 13, 2009
255
3
18,785
0
There's a folder with some files having different copies of it, ie abc.ext, abc (1).ext, abc (2).ext. Those with different copies are about the same subject but some include more detail than others. In the--vast majority--of cases a larger file yield a better result, so I'd like all other copies to be kept in the small chance it's not the case. After the moving of smaller versions is done, I'd like for the remaining files that were a copy (in the example abc (1).ext and abc (2).ext) to be renamed as the original filename (in the example abc.ext).

Thank you kindly for your assistance
 

DynV

Distinguished
Aug 13, 2009
255
3
18,785
0
how to automate it? some program to do it for you?
One of those 2.

just not sure what exactly you are asking for here.
Please notice the files were renamed in the following example; the content of them is differentiated by their file-size.
  1. BEFORE
    \
    o.ext 50 KB, o (1).ext 75 KB, o (2).ext 60 KB, p.ext 180 KB, p (1).ext 150 KB, p (2).ext 300 KB
    \backup\
    [empty]
  2. AFTER
    \
    o.ext 75 KB, p.ext 300 KB
    \backup\
    o.ext 50 KB, o (1).ext 60 KB, p.ext 180 KB, p (1).ext 150 KB
 

ASK THE COMMUNITY

TRENDING THREADS