Posts Tagged ‘automation’
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.
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.
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.
exec:”c:batchbatch-any.cmd” %1 %2
You can find the download on the USB Detect & Launch page.