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.
@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.