Google Code site. Download is available in the downloads section, or at Google Code.
Otherwise, the script is still available…read on if that’s what you’re interested in…
I keep seeing this crop up more and more as the popularity of Media Browser increases. It has to do with those that have large movie collections, but do not have their individual movie files (in AVI, MKV, MP4, DIVX, WMV, etc.) in a folder of the same name – which Media Browser requires.
I faced this same issue also when I was wanting to get away from MyMovies. I had all of my movies thrown into a couple of categorized directories, but that was it. I couldn’t imagine manually creating 1500 folders for my movies, so I called upon my batch scripting abilities (I’m a systems administrator by trade) and came up with this little snippet of code that I still use to this day (I have a default folder that I convert all of my new DVD/BluRay discs to and then I run this once the output file is completed).
for %%a in (*.*) do (
md "%%~na" 2>nul
move "%%a" "%%~na"
Just copy this into a text file and rename it to a .bat extension. You will place the .bat file into the directory containing your movie files and then double-click it. It will automatically create a new folder of the same name of each of your movie files and then move that file into it. Voila! If you have any subtitles that are named the same as your video files, they will get moved into the same folder as well (any file of the same name will, actually). So if you have a movie called The Transporter.avi, a The Transporter.srt subtitle file, and a The Transporter.jpg image file inside your Movies directory, when you run the script all three files will be moved to Movies\The Transporter directory.
If you have multiple directories, you will need to do the same for each of them as this is not recursive code. I’d rather it not be so that you have some level of control over it. I also would not run this in any TV series folders as it will throw your individual episodes into their own folders. Also, if you have any of your files marked as hidden or read-only, they will not get moved.
Warning! Depending on where you have your movies stored and/or what is in your movies directory, this could be a very dangerous script. Keep in mind that this script will move EVERYTHING within the directory it is run in except for hidden and read-only files. Due to the number of issues, do not not run this against network locations unless the drive is mapped to a local drive letter. End Warning!
Anyway, hope this helps some of you out!
Update: I have not been able to reproduce this on at least a half-dozen systems using four different OSes (2008 Server x64, 2003 x86/x64, Vista Ultimate x86/x64 and XP x86, but I thought I should put it out since at least one person has commented on it. Apparently this script created odd-named folders and did not move any files. As I said, I have not ever had any issue with this script and it has moved over 2000 movies for me. Anyway, if you plan to use this, please test it out with some dummy files first (you can use any kind of files, just make sure you do it within a safe folder).
Update 2: It appears there may be an issue with copying the code off this post and inserting it into your own .bat file. So, in order to reduce (or resolve) the issues with it, I’m including the exact .bat file that I use. So far, there have been no reported issues with it.
You can get it here (RAR format).