Endpoint

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

Posts Tagged ‘automation

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 , , ,

USB Detect & Launch Version 1.5 Released

leave a comment »

USB D&L USB Detect & Launch allows you to automatically execute a script or application each time a USB storage device is plugged into your PC. Different scripts can be executed for different devices and it’s the volume label that determines what action to perform.

Version 1.5 contains new functionality to monitor for any device being plugged in; useful when you have no control over what memory stick is being inserted, but need to fire off a script to perform a particular action.

e.g.

label:(any)
exec:”c:batchbatch-any.cmd” %1 %2

You can find the download on the USB Detect & Launch page.

Written by Matt

February 29, 2008 at 7:10 am

File Mover Version 1.6 Released

leave a comment »

This is a minor release and gives the application more resilience around folder availability, i.e. it can handle when a UNC drive isn’t available for copying from/to.

Click over to the software page for the download.

Written by Matt

November 13, 2007 at 6:07 pm

Posted in Software, Technical, Windows

Tagged with , , ,

Follow

Get every new post delivered to your Inbox.