Mostly a part of our hard disk memory occupied by temp files, those all unwanted files and need to clear for freeing up your hard disk space, its hard to keep on deleting those files manually. Come lets make a bat script for clearing those temporary files
Copy the below code and save it as bat script(*.bat)
del /s /f /q c:\windows\temp\*.*
rd /s /q c:\windows\temp
md c:\windows\temp
del /s /f /q C:\WINDOWS\Prefetch
del /s /f /q %temp%\*.*
rd /s /q %temp%
md %temp%
deltree /y c:\windows\tempor~1
deltree /y c:\windows\temp
deltree /y c:\windows\tmp
deltree /y c:\windows\ff*.tmp
deltree /y c:\windows\history
deltree /y c:\windows\cookies
deltree /y c:\windows\recentplaces
deltree /y c:\windows\spool\printers
del c:\WIN386.SWP
cls
No comments:
Post a Comment