Helper for cleanup of left over files from ARGUS & ComSkip

Share your ARGUS TV tips & tricks here
Post Reply
Christoph21x
Posts: 1070
Joined: Wed Oct 19, 2011 9:39 am
Location: Berne / Switzerland

Helper for cleanup of left over files from ARGUS & ComSkip

Post by Christoph21x » Sat Nov 24, 2012 7:16 pm

== EDIT 2015-05-10: CleanDir "ARGUS-TV" Version 1.3 available==

Hi All,

a couple of times ago, I got worried about all this garbage of left over files and I wrote two little helper batch files which clean up the directories from the left-overs from ARGUS-TV, 4TR & ComSkip: *.arg, *.thmb, *.4tr, *.txt, *.log, etc. - whatever you have left when you deleted a show from the player when having watched them like from XBMC, which only deletes the *.ts (or other) file and leaves the rest.

The two cmd files search the directory (and sub, if selected) for files for which no corresponding video file is present and deletes or moves them. Call CleanDir.cmd from your service task or manually in the directory you want to clean up. For any "candidate", it will repeatedly run DelNoTS.cmd to check, if a corresponding *.ts (or other video files since V 1.1a) file is present or missing and take action (... or not ;) ).

Maybe anyone may find them useful as well. Adjust them to your needs.

Short info:
  • Simply place the two batch files (*.cmd) in any directory which should be set in your path information (or add the path in CleanDir.cmd to call DelNoTS.cmd)
  • I run CleanDir.cmd from my automated task which also creates the XMLTV file (runtime of this cleanup is approx. 25-45 secs.)
  • Adjust settings by commenting in & out in CleanDir.cmd
  • Adjust file types to apply clean on in DelNoTS.cmd file
  • Only run the CleanDir.cmd command, the second batch is used to check for presence of related *.ts (or other video files) and is called automatically from CleanDir
  • Options: either delete or move the unneeded files, select move-to directory (absolute, relative), recurse sub directories, create a log file, include ComSkip files (makes an additional run to get them all ;) ), add or remove file types you want to be treated or not
Adjust them to your needs, I would be glad if someone can use them.

Find the cmd/batch files under http://21x.eu/downloads/CleanDirectory.html
Kind regards from Switzerland - Christoph
"One must still have chaos within oneself, to give birth to a dancing star." (F. Nietzsche)

Christoph21x
Posts: 1070
Joined: Wed Oct 19, 2011 9:39 am
Location: Berne / Switzerland

CleanDir V 1.3 is available as per 2015-05-10

Post by Christoph21x » Sun May 10, 2015 1:21 pm

Hi All

CleanDir V 1.3 is available as per 2015-05-10 - Download link see first post.
Changes:
  • Clean-up of code
  • Added cleanup of created files by comskip *.dif (since April 2015's version)
If you use CleanDir already and you just want to include the new dif files in your cleanup, you could just exchange the file DelNoTS.cmd with you installation (working, but not recommended)

Greetz - Chris
"One must still have chaos within oneself, to give birth to a dancing star." (F. Nietzsche)

User avatar
wpjonesnh
Posts: 6
Joined: Sat May 19, 2012 9:20 pm
Location: New Hampshire, USA
Contact:

Re: Helper for cleanup of left over files from ARGUS & ComSk

Post by wpjonesnh » Fri Oct 28, 2016 12:06 am

I know this is a really old post but wonderful! Everything gets cleaned up in my directory EXCEPT for the dif files. I just update the CleanDir batch to search for dif instead of txt files. Works great!
Single Seat setup
Recorders: (2) HDHomerun Primes with Cable cards
Computer1: MediaPortal 1.15.0 w/ ArgusTV 2.3 on Windows 10 64bit
Computer2: Windows 10 with Plex Mediaserver and 31TB Drivepool

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests