Looking for a batch file to move files "greater than"
Posted: 02 May 2010 22:04
I have tons of fonts I have saved and collected over time plus a few store-bought CD's worth and need to catalog them all.
I have my base files saved on a second drive and all the files have been converted from short names to true names e.g. BES__.ttf to BlackEnglishScript.ttf.
I need to move these files from one file folder to another and it is easy to do in W.E. except where there is already a file by the exact same name. Then I have to stop and compare and I will overwrite the existing file only if the existing file is smaller in bytes than the file I am moving. That get tedious fast with 1,000's of TTF's and OTF's.
So, I'd like to beg for a script/batch that would move all the files from folder 'A' to folder 'B' and where there is an existing file of the same name it would get overwritten ONLY if the overwriting file is larger/greater than the existing file. If it is smaller it gets skipped and we move on to the next file in the queue. When I am done, any files left in folder 'A' I can safely delete as non-wanted dupes as they are smaller than their existing counterparts.
Thanks.
I have my base files saved on a second drive and all the files have been converted from short names to true names e.g. BES__.ttf to BlackEnglishScript.ttf.
I need to move these files from one file folder to another and it is easy to do in W.E. except where there is already a file by the exact same name. Then I have to stop and compare and I will overwrite the existing file only if the existing file is smaller in bytes than the file I am moving. That get tedious fast with 1,000's of TTF's and OTF's.
So, I'd like to beg for a script/batch that would move all the files from folder 'A' to folder 'B' and where there is an existing file of the same name it would get overwritten ONLY if the overwriting file is larger/greater than the existing file. If it is smaller it gets skipped and we move on to the next file in the queue. When I am done, any files left in folder 'A' I can safely delete as non-wanted dupes as they are smaller than their existing counterparts.
Thanks.