Usenetserver.com Global Search nzb processor

Come up with a useful post-processing script? Share it here!
Post Reply
User avatar
SizzlechestSA
Newbie
Newbie
Posts: 5
Joined: October 9th, 2008, 3:30 pm

Usenetserver.com Global Search nzb processor

Post by SizzlechestSA »

Usenetserver.com has a Global Search engine for Usenet posts. The system allows you to select posts and download your own custom nzb file containing those posts.  Many times, an nzb has been posted for the item you wish to retrieve.  I designed this script to take the nzb files retrieved through SABDNZB and copy them to the blackhole directory.  It will not perform this function if files other than nzb files are present.  However, it will work if multiple nzb files are downloaded at a time from Global Search.  If there are any other search engines like this, it should work for them, too.

Code: Select all

@ECHO OFF
REM Check for files that other than .nzb
dir /b /l "%1"|FINDSTR /R /V "\.nzb$" >nul:

IF ERRORLEVEL 1 GOTO :NZBONLY
echo Files other than nzb files detected.
goto :END

:NZBONLY
copy /y "%1\*.nzb" C:\NZB_Blackhole >nul:
echo Copied nzb files to blackhole directory.
rd /s /q "%1"

goto :END

:END
You will need to edit the C:\NZB_Blackhole directory to whatever you're using.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Usenetserver.com Global Search nzb processor

Post by shypike »

nice script. this feature has been implemented for 0.5.0 (which will be published in a few months ).
Post Reply