Top 10 Most Useful batch files for windows | You can create to automate tasks on Windows 11
Batch files are small scripts in Windows that let you automate boring tasks. Instead of repeating the same steps again and again, you can just double-click a batch file and the work will be done automatically.
Here are 10 super useful batch file ideas that can make your daily work easier. I’ll explain what each file does, how to save it.
In the end, I've shared a link where you can directly download all of them.
1. Temporary Files Cleaner
This batch file deletes all temporary files and helps boost your PC’s speed.
Code:
How to Save:
-
Open Notepad
-
Paste the code above
-
Click File → Save As
-
Name it: CleanTemp.bat
-
Select All Files in “Save as type”
2. WiFi Password Viewer
Want to see the password of a saved WiFi on your PC? This batch file shows it.
Code:
Note: Replace "WiFi-Name" with your actual WiFi name.
Save as: WifiPassword.bat
3. Auto Backup Script
This will copy all your important files into a backup folder with just one click.
Code:
Save as: BackupFiles.bat
4. Network Info Viewer
This shows all your network information like IP, DNS, and Gateway.
Code:
Save as: NetworkInfo.bat
5. Folder Locker
Create a folder that you can lock and unlock with a password.
Code:
Note: Change the password (1234) to your own.
Save as: FolderLocker.bat
6. Auto Shutdown Timer ⏳
This shuts down your computer after a set time.
Code:
Note: Here, 3600 = 1 hour (in seconds).
Save as: ShutdownTimer.bat
7. Restart Internet Adapter
Sometimes your internet gets slow. Use this to refresh the connection.
Code:
Save as: RestartInternet.bat
8. Open Multiple Programs at Once
Want to start your favorite apps with one click? Use this.
Code:
Note: Replace apps with your own.
Save as: OpenApps.bat
9. Internet Connection Test
Quickly check if your internet is working or not.
Code:
Save as: InternetCheck.bat
10. Auto Folder Creator (With Date)
This creates a new folder every day with today’s date.
Code:
Save as: AutoFolder.bat
🎁 Direct Download Link
If you don’t want to copy-paste all these codes..
You can directly download all batch files ready-to-use from this link: