Alt.Binz forum

New Alt.Binz versions => Requests => Closed requests => Topic started by: davidq666 on May 06, 2009, 04:24:24 pm

Title: Option to delete nfo sfv ect.
Post by: davidq666 on May 06, 2009, 04:24:24 pm
i would like to have the option to autodelete specific file-type in the way the transfer to unrar option works because i usualy never take a look at them again and deleting manualy can be quite tedious...
Title: Re: Option to delete nfo sfv ect.
Post by: Hecks on May 06, 2009, 08:11:41 pm
May I piggyback on this request by asking for option to delete download folder on clicking cleanup button for maximal laziness.

Title: Re: Option to delete nfo sfv ect.
Post by: davidq666 on May 07, 2009, 09:55:36 am
May I piggyback on this request by asking for option to delete download folder on clicking cleanup button for maximal laziness.



it's basicly the same thing because if u get arid of all files,the download-folder will be empty and thus deleted automaticly... but the best thing would still be not having to download nfo's and sfv's in order to enable automatic unraring as i requested earlier on: https://www.altbinz.net/forum/index.php?topic=2618.0 
Title: Pls Add - Delete *.nfo after unrar
Post by: dlp1000 on October 13, 2009, 09:47:53 am
In Alt.Binz, I've paused the NFO file from being downloaded, however, the small PAR2 file causes the missing NFO file to be rebuilt from pars. Then the file either remains in the "download" directory or get's moved to the "unrar" directory. Am I missing a feature to simply delete the NFO file after unrar?

Thanks...
Title: Re: Option to delete nfo sfv ect.
Post by: davidq666 on October 13, 2009, 10:15:05 am
In Alt.Binz, I've paused the NFO file from being downloaded, however, the small PAR2 file causes the missing NFO file to be rebuilt from pars. Then the file either remains in the "download" directory or get's moved to the "unrar" directory. Am I missing a feature to simply delete the NFO file after unrar?

Thanks...

obviously

+1 from me... i merged your request with an older request of mine heading in the same direction...
Title: Re: Option to delete nfo sfv ect.
Post by: musictrivianut on October 15, 2009, 01:27:49 am
And here I thought this was just me.  I don't remember there being nfo files to delete until just recently.  Is that a new feature?
Title: Re: Option to delete nfo sfv ect.
Post by: Monolith1 on November 02, 2009, 01:29:00 pm
Yes, I find the nfo's screw up xbmc sometimes so I use a batch file in the root of my unrar folder with the following RSS filter. I stick it on the end of each one and that way everytime one runs it tidies up the folder. You could easily add extra file types.

dexter* | A | | D:\mediashare\series\Dexter | D:\mediashare\series\cleanup.bat

and this is the contents of the "cleanup.bat" file.

del D:\mediashare\*.nfo /S
Title: Re: Option to delete nfo sfv ect.
Post by: davidq666 on November 02, 2009, 05:08:46 pm
Yes, I find the nfo's screw up xbmc sometimes so I use a batch file in the root of my unrar folder with the following RSS filter. I stick it on the end of each one and that way everytime one runs it tidies up the folder. You could easily add extra file types.

dexter* | A | | D:\mediashare\series\Dexter | D:\mediashare\series\cleanup.bat

and this is the contents of the "cleanup.bat" file.

del D:\mediashare\*.nfo /S

the script runs after the repair/unrar... does alt.binz delete the folder empty once the nfo is gone?
Title: Re: Option to delete nfo sfv ect.
Post by: armyb77 on November 02, 2009, 08:15:29 pm
Monolith1 Sounds like an interesting concept I might need to try as an interim fix.

  I use Alt.Binz to download all of my wife's TV show (there is a LOT! ::) )  Of course I have to keep allow everything that the small par2 file says is part of the download so it will autounrar, but then i'm always stuck with a lot of .sfv, .nfo, and sometimes the original small par2 file itself along with other bull files. 

Just getting a feature to select files types to autodelete after unrar is completed would be the best solution for me.  All of my TV shows UnRaR into my Videos Directory without subfolders.   In Media Center 7 I don't even know how cluttered it is in there until I open up the folder and look.  2 weeks worth of shows without opening the directory and it leaves almost 86 files of garbage .nfo, .sfv, some other ones as well.  Not everyone wants the same things deleted so being able to put which ones the individual wants would be helpful. 

Also maybe a selection to autodelete files if a repair fails, or unrar fails.  With RSS feeds a fix is usually re-posted shortly afterwords so deleting it would be no big deal for me as it will just re-download when the new version is posted..

Thanks davidq666 for posting this!

Armyb77
Title: Re: Option to delete nfo sfv ect.
Post by: davidq666 on November 05, 2009, 08:34:08 pm
Monolith1 Sounds like an interesting concept I might need to try as an interim fix.

  I use Alt.Binz to download all of my wife's TV show (there is a LOT! ::) )  Of course I have to keep allow everything that the small par2 file says is part of the download so it will autounrar, but then i'm always stuck with a lot of .sfv, .nfo, and sometimes the original small par2 file itself along with other bull files. 
...

If you create seperate subfolders for each download, then Monolith1's script isn't optimal for you, because instead of the files u will be stuck with empty folders. in this case the 7zip.bat script from MrbLOB9000 would be a better choice:

https://www.altbinz.net/forum/index.php?topic=1244.msg14031#msg14031

but u could also create ur own by using

del %1\*.sfv for deleting files from within the download folder

move %1\*.mp3 %2 for moving files to unrar folder

and at the end use:

rd %1 to delete the download folder in case it's empty
Title: Re: Pls Add - Delete *.nfo after unrar
Post by: MajorBlink on November 07, 2009, 05:04:52 am
In Alt.Binz, I've paused the NFO file from being downloaded, however, the small PAR2 file causes the missing NFO file to be rebuilt from pars. Then the file either remains in the "download" directory or get's moved to the "unrar" directory.

Thanks...
+1
I would also make use of an option such as "Delete *.NFO after successfully unraring" similar to the others on the "Unrar Options" tab. (Pure laziness on my behalf.)
BTW I think the program is terrific!
Title: Re: Pls Add - Delete *.nfo after unrar
Post by: d4f0rc3 on December 04, 2009, 02:18:15 pm
I would also make use of an option such as "Delete *.NFO after successfully unraring" similar to the others on the "Unrar Options" tab. (Pure laziness on my behalf.)
BTW I think the program is terrific!

+1 and +1
Title: Re: Option to delete nfo sfv ect.
Post by: Hecks on December 04, 2009, 02:33:20 pm
In the meantime, David's script here works very well, and it only needs to be set up once - takes 2 mins:

https://www.altbinz.net/forum/index.php?topic=1244.msg14262#msg14262
Title: Re: Option to delete nfo sfv ect.
Post by: d4f0rc3 on December 04, 2009, 06:16:45 pm
tried that script and it didn't work. I saw the cmd pop up everytime but the files were still there :(
Title: Re: Option to delete nfo sfv ect.
Post by: Hecks on December 05, 2009, 04:07:56 pm
I can confirm that the script works perfectly.  You must be doing something wrong.
Title: Re: Option to delete nfo sfv ect.
Post by: d4f0rc3 on December 05, 2009, 05:35:43 pm
Setup -> NZB #2 -> Default execute command: "C:\Program Files (x86)\altbinz\misc\simple-clean-up.bat" "$d"

and the .bat has exactly those commands in it that david posted.
Title: Re: Option to delete nfo sfv ect.
Post by: davidq666 on December 05, 2009, 06:35:46 pm
Setup -> NZB #2 -> Default execute command: "C:\Program Files (x86)\altbinz\misc\simple-clean-up.bat" "$d"

and the .bat has exactly those commands in it that david posted.

this way command will only be applied to newly added collections and only clean up the download-folder specific to the collection after which it is executed. but u can also copy paste "C:\Program Files (x86)\altbinz\misc\simple-clean-up.bat" "$d" in each collection using the execute command shortcut crtl+K...
Title: Re: Option to delete nfo sfv ect.
Post by: d4f0rc3 on December 05, 2009, 10:54:01 pm
so it doesn't delete the files from the folder where it unrared to? or am I getting something wrong? because either way (nzb tab and manually via ctrl+k) the nfo and srr etc are moved to the unrar folder.
Title: Re: Option to delete nfo sfv ect.
Post by: davidq666 on December 06, 2009, 05:05:50 pm
no it doesn't. it only cleans up the download dir. i doubt that they were moved my guess would be they were unrared ther. if they were moved then they were most likely moved there by alt.binz Settings-> unrar
but if u want the types deleted from unrar dir there is a simple way to do that:

at the end add the lines:

del %2\*.nfo
del %2\*.ssr

or any other filetyp using the same method

then just use

"C:\Program Files (x86)\altbinz\misc\simple-clean-up.bat" "$d" "$u"

instead
Title: Re: Option to delete nfo sfv ect.
Post by: d4f0rc3 on December 06, 2009, 09:50:30 pm
my bad, thx for figuring it out. I still had the files being moved to the unrar folder. Will see tomorrow if it works.

If I set your script as the default one, can I disable it for certain collections by pressing CTRL+K and deleting the command from the line or will it be applied on any circumstances? (sometimes the nfo is needed)
Title: Re: Option to delete nfo sfv ect.
Post by: davidq666 on December 07, 2009, 07:42:13 am
deleting the execute command via ctrl+K will do the job
Title: Re: Option to delete nfo sfv ect.
Post by: d4f0rc3 on December 07, 2009, 01:39:40 pm
thanks again, it works now.

EDIT: the cmd window poping up every time is really annoying because it cancels fullscreen most of the time, e.g. when watching something with mpc-hc in fullscreen the cmd windows cancels fullscreen mode.

SOLVED: "C:\Program Files (x86)\altbinz\misc\simple-clean-up.bat /min" "$d"
Title: Re: Option to delete nfo sfv ect.
Post by: domdom on December 13, 2009, 07:43:52 pm
thanks again, it works now.

EDIT: the cmd window poping up every time is really annoying because it cancels fullscreen most of the time, e.g. when watching something with mpc-hc in fullscreen the cmd windows cancels fullscreen mode.

SOLVED: "C:\Program Files (x86)\altbinz\misc\simple-clean-up.bat /min" "$d"

This works
"E:\Install\Internet\News\Altbinz noinstall\cleanup.bat" "$d" "$u"

But this NOT:
"E:\Install\Internet\News\Altbinz noinstall\cleanup.bat /min" "$d" "$u"

 ??? ??? ???

If I can avoid the dos window, I wouldnt mind :)
Title: Re: Option to delete nfo sfv ect.
Post by: d4f0rc3 on December 13, 2009, 08:36:13 pm
did you add

@echo off

to the beginning of the .bat file? maybe it's necessary. or try to remove the second variable $u
Title: Re: Option to delete nfo sfv ect.
Post by: domdom on December 13, 2009, 08:38:31 pm
I dont believe it is about the content of the batch file but running the file or not
Without the /MIN switch it runs ok (and displays the window)
I can live with it but if someone has a fix, I will take it!
Title: Re: Option to delete nfo sfv ect.
Post by: d4f0rc3 on December 13, 2009, 11:26:40 pm
I just made 2 suggestions, instead of denying it you should try it.
Title: Re: Option to delete nfo sfv ect.
Post by: Hecks on December 14, 2009, 12:39:45 am
The way to do it with e.g. cleanup.bat:

1. Create shortcut to your cleanup.bat file (same directory is fine)
2. Right-click shortcut, Properties > set Run: Minimized
3. Change your command to:

"C:\path_to_script\cleanup.lnk" "$d" "$u"

i.e. replace .bat with .lnk
Title: Re: Option to delete nfo sfv ect.
Post by: artigbzh on December 14, 2009, 08:56:37 pm
I prefer that delete nfo files was an option because for some download you can find same instructions in nfo file to finish your installation
Title: Re: Option to delete nfo sfv ect.
Post by: d4f0rc3 on December 15, 2009, 01:49:39 pm
I just noticed that the "/min" didn't work for me, too. I had a mixup with my hdd's and I didn't see the folders that were still there with the nfo, srr, etc in it. Thanks Hecks for the trick with the shortcut. Just checked and works like a charm without the annoying cmd window.
Title: Re: Option to delete nfo sfv ect.
Post by: davidq666 on December 16, 2009, 11:57:40 am
I prefer that delete nfo files was an option because for some download you can find same instructions in nfo file to finish your installation
there are two ways u could make it an option:

1.) u could use one script then the user would have to decide each time wether nfos should be deleted or

2.) u could use a second script that doesn't delete nfos. but would need to replace ur standard script witth the second script via crtl+k before the download has ended...
Title: Re: Option to delete nfo sfv ect.
Post by: Rafael on November 24, 2010, 03:25:19 am
I'd love to see the import as paused for arbitrary files.

Scratch that, what I really would love is a option where by default all files are imported as paused with the exception of the file types in the list. It wouldn't even need to support arbitrary file types in this case for me as I only would want to be unpaused by default .rar, .nfo, .par2 and .sfv.

Very rarely I want to download stuff out of these standard type so its better this way for me.
Title: delete unimportant files
Post by: petrol91 on February 15, 2011, 02:18:15 pm
Setup:Par2/Unrar

For the sake of consistency and usability, I'd like to recommend:
- remove the "Delete *.sfv after successful unraring" and "delete *.md5 .." items from Setup:Par2/Unrar
-  instead, put a listbox there for files that should be deleted - just like that one in Setup:Par2 for unimportant files.

I think this would be the better solution than just add more and more delete options for all the crappy packed archives, like currently having *.srr & *.par2 files enclosed (sic!).
Title: Re: Option to delete nfo sfv ect.
Post by: MegamanNL on March 30, 2011, 01:07:25 am
I'd love to see the import as paused for arbitrary files.

Same here. With the addition of the "Unimportant files in PAR2 set" listbox I kind of expected there to also be a listbox of custom file masks to import as paused (Setup->NZB #2). And a listbox for "Delete after successful unrar".

I've set up a script that deletes the unnecessary files but why even download them if I'm never going to use them...

Some collections have sample files without the word sample in them. They are usually at the bottom of the queue and therefore are downloaded while and after the collection is extracted. So the cleanup script will be useless unless I add a long enough timer (with the choice command for example). Either way those files are using resources for no good reason.


About minimizing the script window... The switch /MIN belongs to the start command. But since you can't run start as an application you will need to call it using cmd.exe. At the end of the batch script you may need an exit command to close the window.
Code: [Select]
cmd.exe /C start "Cleanup" /D "C:\Program Files\AltBinz" /MIN cleanup.bat "$d" "$u"That will still steel focus from a full screen application so the shortcut method suggested by Hecks is a much better solution.  ;D
Title: Re: delete unimportant files
Post by: Rdl on April 25, 2011, 05:27:45 pm
Setup:Par2/Unrar

For the sake of consistency and usability, I'd like to recommend:
- remove the "Delete *.sfv after successful unraring" and "delete *.md5 .." items from Setup:Par2/Unrar
-  instead, put a listbox there for files that should be deleted - just like that one in Setup:Par2 for unimportant files.

I think this would be the better solution than just add more and more delete options for all the crappy packed archives, like currently having *.srr & *.par2 files enclosed (sic!).
Done exactly like described. Make sure to reapply sfv and/or md5