@ECHO OFF :: FILE: DelGarb.bat :: :: Deletes garbage files :: :: Still working on this one :: :: AUTHOR: Parcifal Aertssen :: http://www.aqtronix.com ECHO. ECHO Removing garbage files, please wait... ECHO ______________________________________________________________ IF "%OS%"=="Windows_NT" GOTO Windows_NT :: Remove Recycle Bins IF EXIST C:\RECYCLER\nul DELTREE /Y C:\RECYCLER :: remove certain files - place additional ones here IF EXIST c:\winzip.log DEL c:\winzip.log :: remove windows update files DELTREE /Y "%windir%\Windows Update Setup Files" DELTREE /Y C:\msdownld.tmp DELTREE /Y "%windir%\msdownld.tmp" GOTO end :Windows_NT :: Remove Recycle Bins (only administrators can do this) IF EXIST C:\RECYCLER\nul RD /s /q C:\RECYCLER :: remove certain files - place additional ones here IF EXIST c:\winzip.log DEL /q /f c:\winzip.log :: remove windows update files RD /s /q "%windir%\Windows Update Setup Files" RD /s /q "C:\msdownld.tmp" RD /s /q "%windir%\msdownld.tmp" :end ECHO ______________________________________________________________ ECHO Done removing garbage files. ECHO.