@echo off
setlocal enabledelayedexpansion

:: Loop through all directories and subdirectories to find .TMP files
for /r %%f in (*.TMP) do (
    echo Deleting "%%f"
    del /f /q "%%f"
)

echo Scan complete. All .TMP files have been deleted.
pause
