Scheduled task to delete duplicates by filename

The best solution for finding and removing duplicate files.
Post Reply
achandab
Posts: 5
Joined: Tue Jun 21, 2016 7:55 pm

Scheduled task to delete duplicates by filename

Post by achandab »

Looking to purchase this software but need to ensure it can perform the following via command line

1. Scan directory and subfolders
2. Locate any duplicate filenames above 20mb in size
3. Auto delete all the oldest duplicate filename and keep only the newest.

ie:

sample.txt date created 23/06/2016 size: 10mb
sample.mkv date created 22/06/2016 size: 10gb
sample.mp4 date created 20/06/2016 size: 20gb
sample.avi date created 18/06/2016 size: 15gb

I need the software to delete the "sample.mp4 and sample.avi" file.


Can this be achieved with the pro version?
User avatar
therube
Posts: 615
Joined: Tue Jun 28, 2011 4:38 pm

Re: Scheduled task to delete duplicates by filename

Post by therube »

It would seem yes.

Command Line Parameters (Pro)

And I guess ideally you would use the /p parameter to specify a "profile" (storing your wanted settings) to run.


Says there is 15 day trial. You can try out all the features, but there is a restriction on deleting files.


While I have "run" Duplicate Cleaner from the command line, I haven't actually "used" it in that manner (i.e. used it to see that it would work in a manner that I would expect).

I'd want to be sure it only scanned the particular directory tree I passed to it from the command line - not any others.
That it will scan with my wanted settings - not any settings from a "GUI run".
That I can differentiate between opening the DC GUI directly & settings it may use, & that I can open DC from the command line with a different set of settings that I want it to use, with one being independent of the other, even if that means having two separate installs of DC where one is for opening the GUI itself, & the other is for starting from the command line (batch file or whatever). Can that be done?

I'd have to see how those kinds of things work out.
User avatar
therube
Posts: 615
Joined: Tue Jun 28, 2011 4:38 pm

Re: Scheduled task to delete duplicates by filename

Post by therube »

> 1. Scan directory and subfolders

Directory gets passed with /i parameter.
Subdirectories? I've got to assume that it will default to Yes (scan subfolders)?

> 2. Locate any duplicate filenames above 20mb in size

Size filter would handle that.

> 3. Auto delete all the oldest duplicate filename and keep only the newest.

/a parameter should start the scan automatically.
/c parameter should close DC automatically.
delete all the oldest duplicate filename and keep only the newest
Hmm... ?

Is the actual Selection Mode & File removal, is that part automated, saved as part of the "profile", or will you need to actually interact with that?

"oldest" you can do, but what if in addition to oldest, you also have multiple same date/time newer, are those multiple "newers" left & only the oldest removed?

Not sure offhand?
achandab
Posts: 5
Joined: Tue Jun 21, 2016 7:55 pm

Re: Scheduled task to delete duplicates by filename

Post by achandab »

Cheers buddy. Would love to try this but left it too late and trial period has expired. Is there any way to get an additional day trial? :)
User avatar
DigitalVolcano
Site Admin
Posts: 1734
Joined: Thu Jun 09, 2011 10:04 am

Re: Scheduled task to delete duplicates by filename

Post by DigitalVolcano »

You can't currently select (selection assistant) and delete files from the command line. As of version 4.0.1 you can only automatically run a scan and export the results.

Adding the select/delete functionality from the command line is on the development list, but I can't give you a date for that yet.
User avatar
therube
Posts: 615
Joined: Tue Jun 28, 2011 4:38 pm

Re: Scheduled task to delete duplicates by filename

Post by therube »

If you don't need the GUI part or all the functionality DC provides, this command-line tool, FSF, might meet your needs.
achandab
Posts: 5
Joined: Tue Jun 21, 2016 7:55 pm

Re: Scheduled task to delete duplicates by filename

Post by achandab »

FSF looks perfect. I'll give that a go, cheers!
achandab
Posts: 5
Joined: Tue Jun 21, 2016 7:55 pm

Re: Scheduled task to delete duplicates by filename

Post by achandab »

Just tried it out, looks really good, only issue is that it doesn't recognize extensions as dup files.
Post Reply