@echo off
REM Thunderbird - windows explorer clean up ********************
%SystemRoot%\explorer.exe "C:\Users\***explorer folder address\***"
CD "C:\Users\***explorer folder address\***"
REM Remove extra characters after file extension
REM will remove lets say you have .jpgxxxxxxx for an extension - it will remove all the x's
ren *.jpg* *.jpg
REM Remove all files except those with specific extensions
set ROOTDIR=C:\Users\***explorer folder address\***
for /f "delims=" %%F in ('dir %ROOTDIR% /s /b /a-d ^|findstr /vile ".jpg"') do del "%%F"
exit
REM ***Just rewrite to suite***