Author Topic: Option to delete nfo sfv ect.  (Read 16429 times)

Offline d4f0rc3

  • Contributor
  • ***
  • Posts: 69
Re: Option to delete nfo sfv ect.
« Reply #15 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.

Offline davidq666

  • Contributor
  • ***
  • Posts: 1302
  • Watashi Wa Ero Desu!
Re: Option to delete nfo sfv ect.
« Reply #16 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...

Offline d4f0rc3

  • Contributor
  • ***
  • Posts: 69
Re: Option to delete nfo sfv ect.
« Reply #17 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.

Offline davidq666

  • Contributor
  • ***
  • Posts: 1302
  • Watashi Wa Ero Desu!
Re: Option to delete nfo sfv ect.
« Reply #18 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

Offline d4f0rc3

  • Contributor
  • ***
  • Posts: 69
Re: Option to delete nfo sfv ect.
« Reply #19 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)

Offline davidq666

  • Contributor
  • ***
  • Posts: 1302
  • Watashi Wa Ero Desu!
Re: Option to delete nfo sfv ect.
« Reply #20 on: December 07, 2009, 07:42:13 AM »
deleting the execute command via ctrl+K will do the job

Offline d4f0rc3

  • Contributor
  • ***
  • Posts: 69
Re: Option to delete nfo sfv ect.
« Reply #21 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"
« Last Edit: December 09, 2009, 03:58:04 PM by d4f0rc3 »

Offline domdom

  • Contributor
  • ***
  • Posts: 110
Re: Option to delete nfo sfv ect.
« Reply #22 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 :)

Offline d4f0rc3

  • Contributor
  • ***
  • Posts: 69
Re: Option to delete nfo sfv ect.
« Reply #23 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

Offline domdom

  • Contributor
  • ***
  • Posts: 110
Re: Option to delete nfo sfv ect.
« Reply #24 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!

Offline d4f0rc3

  • Contributor
  • ***
  • Posts: 69
Re: Option to delete nfo sfv ect.
« Reply #25 on: December 13, 2009, 11:26:40 PM »
I just made 2 suggestions, instead of denying it you should try it.

Offline Hecks

  • Contributor
  • ***
  • Posts: 2011
  • naughty cop
Re: Option to delete nfo sfv ect.
« Reply #26 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
« Last Edit: December 15, 2009, 01:54:53 PM by Hecks »

Offline artigbzh

  • Contributor
  • ***
  • Posts: 4
Re: Option to delete nfo sfv ect.
« Reply #27 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

Offline d4f0rc3

  • Contributor
  • ***
  • Posts: 69
Re: Option to delete nfo sfv ect.
« Reply #28 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.

Offline davidq666

  • Contributor
  • ***
  • Posts: 1302
  • Watashi Wa Ero Desu!
Re: Option to delete nfo sfv ect.
« Reply #29 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...