Automatically organize your files into separate folders based on their file extensions. Copy the code or download the ready-to-use BAT file.
@echo off
for %%a in (".\*") do (
if "%%~xa" NEQ "" if /I "%%~fa" NEQ "%~f0" (
if not exist "%%~xa" mkdir "%%~xa"
move "%%a" "%%~xa\"
)
)