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 :