Boost Your PC Speed Using a Single `.BAT` File (Free & Safe Method)

If your computer feels slow, takes too long to boot, or freezes while opening apps — don’t worry. You don’t need any paid software like CCleaner or System Mechanic.
You can **speed up your PC using a simple `.bat` script** that cleans temporary files, flushes DNS, resets system cache, and optimizes performance — automatically.
This file works on **Windows 8, 10, and 11**.

## ✅ What This Script Will Do
✔ Delete temporary and unused files
✔ Clean system caches
✔ Flush DNS
✔ Free up RAM
✔ Speed up internet response time
✔ Improve system performance


📌 Step 1 — Create the File

1. Right-click on your desktop
2. Click **New → Text Document**
3. Rename it to:

➡️ `PC-Speed-Booster.bat`
(Important: Make sure extension is `.bat` not `.txt`)


## 📌 Step 2 — Paste This Code
Copy and paste the following script inside the file:



@echo off
color 0a
title PC Speed Booster by DharTee

echo ================================
echo    🚀 System Cleanup Started
echo ================================
timeout /t 2 >nul

:: Temporary Files
echo 🧹 Cleaning temporary files...
del /s /f /q %temp%*.* >nul
rd /s /q %temp% >nul
mkdir %temp%
echo Done!
timeout /t 1 >nul

:: Prefetch
echo 🧹 Cleaning prefetch files...
del /s /f /q C:\Windows\Prefetch*.* >nul
echo Done!
timeout /t 1 >nul

:: Recycle Bin
echo 🗑️ Emptying Recycle Bin...
rd /s /q C:$Recycle.Bin >nul
echo Done!
timeout /t 1 >nul

:: DNS Flush
echo 🌐 Flushing DNS...
ipconfig /flushdns >nul
ipconfig /release >nul
ipconfig /renew >nul
netsh winsock reset >nul
echo Done!
timeout /t 1 >nul

:: Speed up startup
echo ⚙ Optimizing Windows startup...
wmic startup where "command like '%%'" call disable >nul
echo Done!
timeout /t 1 >nul

echo ================================
echo       Optimization Complete!
echo Restart your PC for best results.
echo ================================
pause 


Step 3 — Run as Administrator
After saving the file:
Right-click → **Run as Administrator**
You will see a green command window cleaning and optimizing your system.


## ⚠ Important Notes
* This script is **safe** and does **not delete personal files**
* You can run it once a week for best performance
* Restart after running for maximum speed improvement

## Results You Can Expect:
| Before | After |
| Slow boot time To | Faster boot time |
| Browser delay To | Faster browsing |
| Heavy RAM usage To| Clean memory |
| Lag while opening apps To| Smooth performance |

## Final Thoughts
This `.bat` script is a free and simple way to keep Windows fast without installing any third-party software. If you want, you can also pin this file to:
📌 Desktop
📌 Taskbar
📌 Start Menu
So you can run it anytime your system becomes slow.