Batch File to Sort TV Shows Into Folders
This took a long time to find. There are hundreds of scripts that will move your Movie files into folders. TV shows are different because you have 10-20 episodes to send to a folder and they all have slightly different names. I found this batch file and modified it for my specific needs. My shows were all recorded with Snapstream BeyondTV which meant I had 2600 episodes all in one folder.
rem @echo off &
for /f “tokens=* delims= ” %%a in (‘dir/b/a-d *.avi’) do (
for /f “tokens=1 delims=-” %%f in (“%%~Na”) do (
if not exist %%f md “%%f”
move “%%a” “%%f”
There are two settings you will need to change for your needs: