Steps to cleanup temporary files in Windows.



1. Create a file and named as “Cleanup.bat“.
2. Copy the following content in to file and Save it.

@echo off
Echo “Preparing for deletion of TEMP files and Internet Cache”
Echo “Calculating Settings…”
Echo .
Echo “Deleting Temporary Files from your profile…”
del “%userprofile%\Local Settings\Temp\*.*” /s /q /f
RD “%userprofile%\Local Settings\Temp” /s /q
md “%userprofile%\Local Settings\Temp”
Echo %ERRORLEVEL%
Echo .
Echo “Deleting Temporary Internet Files from your profile…”
del “%userprofile%\Local Settings\Temporary Internet Files\*.*” /s /q /f
RD /S /Q “%USERPROFILE%\Local Settings\Temporary Internet Files”
MD “%USERPROFILE%\Local Settings\Temporary Internet Files”
Echo %ERRORLEVEL%
Echo .
Echo “Deleting Temporary Files from System…”
del “%SystemDrive%\Temp\*.*” /s /q /f
Echo %ERRORLEVEL%
Echo .
Echo “Deleting Temporary Files from System…”
%system%/clean.con
del”%Systemroot%\Temp\*.*” /s /q /f
RD “%Systemroot%\temp” /s /q
md “%Systemroot%\temp”
Echo %ERRORLEVEL%
Call GURswi.bat
Echo Completed…
exit
3. Copy “Cleanup.bat” file into C:\> Drive.

4. Run  ”Cleanup.bat“.
SHARE

    Blogger Comment
    Facebook Comment

0 comments :

Post a Comment