Script to increase the performance of window machine
- Save the following script in batch file (with .bat extension)
@echo off
IF EXIST c:\windows\temp\ del /f /s /q c:\windows\temp\
DEL /f /s /q %temp%\
IF EXIST "C:\Users\" (
for /D %%x in ("C:\Users\*") do (
del /f /s /q "%%x\AppData\Local\Temp\"
del /f /s /q "%%x\AppData\Local\Microsoft\Windows\Temporary Internet Files\"
)
)
rd /s c:\$Recycle.Bin
rd /s /q %systemdrive%\$Recycle.bin
del c:\windows\prefetch
gpupdate /force
wuauclt /detectnow /updatnow
2. Double-click the batch file, it runs on cmd and clears your all temp folder to improve the speed of your laptop using a Windows machine. It also updates your window patches.
-- Double click the batch file
Speedup.bat