[WIN] Script to put avi and mkv files in seperate folders

Come up with a useful post-processing script? Share it here!
Post Reply
soco11
Release Testers
Release Testers
Posts: 13
Joined: February 4th, 2009, 9:50 pm

[WIN] Script to put avi and mkv files in seperate folders

Post by soco11 »

Basically I'm looking for a script to move movie files into separate SD and HD folders. For example:

I download Anymovie.avi and Anymovie2.mkv
I want the files (and folders) to be placed into different directories.
Anymovie.avi would go into /downloads/Movies/SD
Anymovie2.mkv would go into /downloads/Movies/HD

I am a complete idiot when it comes to scripting but I am willing to learn. I have sab installed on a windows 7 x64 machine. Any help would be appreciated.
User avatar
sander
Release Testers
Release Testers
Posts: 8829
Joined: January 22nd, 2008, 2:22 pm

Re: [WIN] Script to put avi and mkv files in seperate folder

Post by sander »

Something like:

Code: Select all

CD %1
MOVE *.avi  /downloads/Movies/SD
MOVE *.mkv /downloads/Movies/HD

See
http://wiki.sabnzbd.org/user-scripts
http://en.wikipedia.org/wiki/List_of_MS ... mands#move

I don't use WIndows, so I can't test it for you.
soco11
Release Testers
Release Testers
Posts: 13
Joined: February 4th, 2009, 9:50 pm

Re: [WIN] Script to put avi and mkv files in seperate folder

Post by soco11 »

Thank you. Will give it a try.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [WIN] Script to put avi and mkv files in seperate folder

Post by shypike »

Make sure you use backslashes and not forward slashes!
Also this will only work if both locations are on the same partition (drive letter).
User avatar
sander
Release Testers
Release Testers
Posts: 8829
Joined: January 22nd, 2008, 2:22 pm

Re: [WIN] Script to put avi and mkv files in seperate folder

Post by sander »

shypike wrote:Make sure you use backslashes and not forward slashes!
Also this will only work if both locations are on the same partition (drive letter).
Ah! Two times the proof that Windows is long time ago for me! :P
soco11
Release Testers
Release Testers
Posts: 13
Joined: February 4th, 2009, 9:50 pm

Re: [WIN] Script to put avi and mkv files in seperate folder

Post by soco11 »

I have Ubuntu on a virtual drive. Maybe I should install sab on there. I've read it's a little easier to us hash
soco11
Release Testers
Release Testers
Posts: 13
Joined: February 4th, 2009, 9:50 pm

Re: [WIN] Script to put avi and mkv files in seperate folder

Post by soco11 »

So, after doing a bunch of research and realizing I am an idiot, I found that what i was trying to do wasn't happening using sabnzbd categories because I was using nzbdstatus addon for firefox to send nzbs over to sab from nzbmatrix. And after trying a ton of batch scripts (some half way worked) i found that I could use SabConnect++ in Chrome and have eveerything work the way i want it!. (that is an abnoxiously long run on sentence)
Post Reply