@echo off ::cleanup.cmd :: This script will delete files from the current user profile :: Use at your own risk! :: Select Drive CD /d C:\ :: Delete Explorer Thumbnail view files CALL :s_clean "%USERPROFILE%\thumbs.db" :: Delete bak files CALL :s_clean "%USERPROFILE%\*.bak" :: Delete Office Recent files CALL :s_clean "%USERPROFILE%\Application Data\Microsoft\Office\Recent\*.*" :: Delete MSAccess Input Mask Wizard Temp file CALL :s_clean "%USERPROFILE%\Application Data\Microsoft\Access\ACWZUSR.MDT" goto :eof :s_clean attrib +a -s -h -r %1 /s 2>nul 1>&2 del /s /f %1 2>nul 1>&2 goto :eof