Page 1 of 1

Want to: Do not create folder in unrar directory. Delete *.sfv. Delete *.nfo.

Posted: April 14th, 2009, 10:15 pm
by MrDetermination
Hi.  I donated to alt.binz a while back and am still running a Windows server but I'm reading Absolute FreeBSD and will someday soon move to a FreeBSD server.  So I recently started using sabnzbd in Windows to help prepare for the transition.

I love the while idea of a http "only" interface and find sabnzbd very stable.  But I do miss having the video files pop up by themselves in my "Purgatory" directory (before files live before I can sort of delete them by hand).

Sabnzbd likes to make subfolders named after the nzb.  I would prefer all files just get dumped in: X:\Purgatory (or soon /tmp/purgatory ;) ) and have it sweep up the .sfv, .nfo files when it deletes the .rars and whatever else from the original download.

Is this something there is planned support for?  Its already there?  Easy to fix with cron/scripting in *nix so I should go ahead and move already? :)

Thanks for a great open source cross platform app.

Re: Want to: Do not create folder in unrar directory. Delete *.sfv. Delete *.nfo.

Posted: April 15th, 2009, 1:25 am
by shypike
This is even better:

Code: Select all

#!/bin/bash
mv "$1/*" /tmp/purgatory
rmdir -r "$1/*"
Documented in: http://sabnzbd.wikidot.com/user-scripts

Re: Want to: Do not create folder in unrar directory. Delete *.sfv. Delete *.nfo.

Posted: April 15th, 2009, 12:25 pm
by MrDetermination
Thanks.  Actually the *nix script already makes sense to me:

#!/bin/bash
mv "$1/*" /tmp/purgatory
rmdir -r "$1/*"

What is the analog in Windows?  Batch file?

Re: Want to: Do not create folder in unrar directory. Delete *.sfv. Delete *.nfo.

Posted: April 15th, 2009, 12:35 pm
by shypike
Put this in a text file with ".cmd" extension.

Code: Select all

@echo off
move %1\* c:\tmp\purgatory
rmdir /s/q %1
Note: no quotes.

Re: Want to: Do not create folder in unrar directory. Delete *.sfv. Delete *.nfo.

Posted: April 15th, 2009, 1:59 pm
by MrDetermination
Excellent, thanks so much.