Hacking Windows 7 Media Center

Auto-Sort Movies into Folders

by @ 7:00 am on March 4th, 2009 in movie library, programs, windows 7 with 16 Comments

Many of us start our movie collection as a group of movies, unorganized into their own folder just laying in a single directory. However, in Media Center and Media Browser this doesn’t quite cut it. Each movie should be in a self-titled directory with any of the subtitle and cover images included.

For those of us with large unsorted movie collections this could present an investment of time we’re not willing to make. This could potentially even prevent us from using Media Center to the full potential. Luckily that doesn’t need to be the case!

Unsorted Movie Folder

Jon, from theHTPC.net, has created a small bat file that can be placed in your unsorted movie folder and used to automatically sort all those movies into the proper folder structure. Any of the extras you might have such as subtitle files will even come along.

Newly Sorted Movie Folder

To get started, just download the bat file and extract it in the movie directory that needs sorted out. Make sure any files you don’t want moved are hidden (right-click > properties > Hidden checkbox) including the bat file. Make sure each file in the directory is ready to be moved (this will move ALL files in the directory unless they are marked hidden or read-only).

Double-click file2folder.bat and off you go! (If you can’t see the file make sure you can see hidden files by checking Folder Options in the Control Panel) That should be all there is to it. Enjoy your newly sorted movie folder.

16 Comments


Anonymous
Comment #176 from Anonymous [Reply]

OMG, I just spent the entire last weekend doing this manually with about 1800 movies. This is a gem of a tool! I wish I had known about it sooner, it might have saved me from carpal tunnel. :P

-t

Comment left March 4, 2009 at 6:41 pm Permanent Link

MHealy
Comment #177 from MHealy [Reply]

I know the feeling I went through quite a collection myself before this little trick. Hopefully it’ll save me quite a bit of time in the future though.

Comment left March 4, 2009 at 8:01 pm Permanent Link

Mark Dunson
Comment #450 from Mark Dunson [Reply]

How would this work on a Windows Home Server shared folder?

Comment left April 25, 2009 at 3:02 am Permanent Link
@Reply #455 from MichaelHealy [Reply]

Unfortunately, I don’t really have much experience with WHS myself but I do know of a great community of WHS users at We Got Served that may be able to help.

Comment left April 25, 2009 at 8:49 am Permanent Link

merdzd
Comment #759 from merdzd [Reply]

Mark Dunson
it just work fine
i`m run on RDP

Comment left May 6, 2009 at 5:13 pm Permanent Link
Comment #799 from GavinMitchell [Reply]

The batch file zip file appears blank, can someone confirm a link that works – thanks!

Comment left May 7, 2009 at 8:36 am Permanent Link

James
Comment #1004 from James [Reply]

This had me fooled too – you need to reveal hiddenfiles to see the batch file in question

Seems Win 7 hides Batch files? –

My last point may be mistaken, but the first one worked for me

Comment left May 12, 2009 at 12:49 pm Permanent Link
@Reply #1009 from Michael Healy [Reply]

The file was marked as hidden before it was placed in the zip to make sure that during the process it doesn’t attempt to make a directory and move itself into it.

Not sure how I missed the earlier comment, sorry about the delay.

Comment left May 12, 2009 at 4:59 pm Permanent Link

Anonymous
Comment #10487 from Anonymous [Reply]

Nice little script, thanks!

Comment left May 1, 2010 at 10:03 pm Permanent Link

incy2k
Comment #11234 from incy2k [Reply]

wish there was something similar to move trailer.avi to a sub folder called trailer to be compliant with the new method in media browser thunderblade

Comment left May 19, 2010 at 4:10 pm Permanent Link
Comment #29033 from Peter Stothers [Reply]

Very helpful indeed, thank you. Sorted my 124 movie files into folders in less than 15 seconds.

P.S Doesn’t support UNC paths so just map the drive until the process is complete.

Comment left January 9, 2011 at 5:04 am Permanent Link

Dan
Comment #41722 from Dan [Reply]

I know a good application – “RoboBasket” can do this sorting work automatically.

Here is a tutorial
http://www.robobasket.com/auto-sort-files-into-folders.html

Comment left May 15, 2011 at 9:51 am Permanent Link

shah
Comment #50139 from shah [Reply]

frandship 03333358024

Comment left October 31, 2011 at 11:45 pm Permanent Link

cassie
Comment #63256 from cassie [Reply]

i can not get this to work no idea what im doing wrong, i have downloaded dat file & estracted it into folder to sort, but not sorting

Comment left February 19, 2012 at 8:36 pm Permanent Link

sreenath
Comment #64409 from sreenath [Reply]

wow wow wow ….thanks i got more than 500 films …..without this man i will become mental..

Comment left March 2, 2012 at 12:37 pm Permanent Link

Gohlum
Comment #70102 from Gohlum [Reply]

Thank you this saved me alot of time :)
And worked like a charm

Comment left April 20, 2012 at 10:01 am Permanent Link

Leave A Comment

Post Anonymously, Fill in your details or Use one of the Social Networks below to login and post a comment!