Rem Script to move recorded TV to appropriate location Rem Script by Chris Duckworth Rem http://www.inspectmygadget.com Rem Grab the movies from Recorded TV starting with M-, Rem then move them to E:Temp. The move to temp is required Rem because otherwise folders will be renamed before copy is complete. D: cd \ cd RecordedTV move M-*.dvr-ms E:\Temp E: cd \ cd Temp for /f "tokens=1-3* delims=-_." %%1 in ('dir /b *.dvr-ms') do ( rename "%%1-%%2_%%3_%%4" "%%2.dvr-ms" ) Move E:\temp\*.* E:\Movies Rem Move specials to specials folder D: cd \ cd RecordedTV move Sp-*.dvr-ms D:\RecordedTV\Specials Rem Grab the movies from Recorded TV starting with (brackets) in title D: cd \ cd RecordedTV rename *)*.dvr-ms *).dvr-ms move *).dvr-ms E:\Temp Move E:\temp\*.* E:\Movies Rem File to Folder those movies E: cd \ CD movies @echo off for %%a in (*.*) do ( md "%%~na" 2>nul move "%%a" "%%~na" ) Rem Move the rest of Recorded TV into their own folders D: cd \ cd RecordedTV for /f "tokens=1-3* delims=-_." %%1 in ('dir /b *.dvr-ms') do ( mkdir "%%1" move "%%1_%%2_%%3_%%4" "%%1" )