Organize Files into Folders (semi) automatically

A batch file which pushes all files into a folder named for the file. Double click the batch and it runs automagically (on windows)

Now the good stuff. Drop this in a text file and rename to bat. Put the batch file wherever you want it to do things.

@echo off
for %%i in (*) do (
 if not "%%~ni" == "organize" (
  md "%%~ni" && move "%%~i" "%%~ni"
 )
)

Use this wisely (and test it first). I’m not responsible for you doing stupid things with it.

Thanks to the Source article :
https://almost-a-technocrat.blogspot.com/2018/04/auto-create-folder-based-on-filename.html

2 Likes

Nice script! This looks especially useful for those with multiple movies in a single folder.