The solution: This little script. It will create a folder with the same name as every file in the directory it's in (minus the file extension), copy the file into the folder, then delete the original file.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. Loop, %A_ScriptDir%\*.*, 0, 0 ;Loop through current directory, ONLY FILES. Do NOT recurse subfolders. { If (A_LoopFileExt = "avi") { LoopFileName = %A_LoopFileName% LoopFileName := RegExReplace(LoopFileName, "\.avi") FileCreateDir, %LoopFileName% FileCopy, %A_LoopFileName%, %LoopFileName% FileDelete, %A_LoopFileName% } } Msgbox Tada! Return