Endpoint

Projects and software by Matt Collinge @ www.mattcollinge.co.uk

Posts Tagged ‘scripts

NZB-to-Server Automation

with one comment

The HTPC I’m using is also my download box. It started to get really tedious to VNC onto it & surf for NZB files, and manage things that way. Now I do it all from my laptop and use a relatively simple batch script to get the NZB files onto the server.

Here’s what’s involved;

Automatic Save Folder – Firefox Add-On

This useful Firefox add-on is used to save the NZB files to a specific folder without even prompting me where to put it. Saves a few clicks and having to re-select the same folder all the time.

Batch Script

One I’m done with the NZB files I then use this simple batch script to map a network drive to the server & move them into a specific folder. This script is then pinned into my Windows 7 Programs folder so that it’s simple to run with a few keystrokes.

Rem EXTRACT ALL ZIP FILES

c:\progra~1\7-zip\7z x "C:\Users\blah\Documents\_altbinz\nzbs\*.zip" -o"C:\Users\blah\Documents\_altbinz\nzbs"

Rem DELETE ZIP FILES

del "C:\Users\blah\Documents\_altbinz\nzbs\*.zip"
del "C:\Users\blah\Documents\_altbinz\nzbs\*.nfo"

Rem MAP NETWORK DRIVE (TEMPORARY)

NET USE T: \\192.168.1.10\htpc /Persistent:No

Rem MOVE ALL FILES TO SERVER

move "C:\Users\blah\Documents\_altbinz\nzbs\*.nzb" "t:\usenet\nzbs-import\"

Rem UNMAP NETWORK DRIVE

NET USE T: /DELETE

pause

Alt.Binz Auto-Import Feature

The alt.binz client allows you to automatically import NZB files from a speified folder. It does this automatically & can delete the NZBs after it’s done. This is perfect for what I’m attempting to do here.

Written by Matt

March 25, 2011 at 7:30 am

Posted in HTPC, Technical

Tagged with , , ,

Follow

Get every new post delivered to your Inbox.