How to Lock a Folder Without Any Third-Party Software (Using a Simple Script)
Want to lock a folder on your Windows system without installing any third-party tools? In this guide, we’ll show you how to do it using a simple batch file. This is useful if you want to hide or protect files from casual access. ⚠️ This method offers basic protection only — it doesn’t encrypt your data. Advanced users can bypass it. For sensitive data, use proper encryption tools. What You’ll Need: A Windows system (any version) Notepad Basic copy-paste skills Steps to Create a Folder Lock Script: 1️⃣ Open Notepad Copy and paste the following code: bat Copy Edit cls @ECHO OFF title Folder Locker if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK if NOT EXIST Locker goto MDLOCKER :CONFIRM echo Are you sure u want to Lock the folder(Y/N) set/p "cho=>" if %cho%==Y goto LOCK if %cho%==y goto LOCK if %cho%==n goto END if %cho%==N goto END echo Invalid choice. goto CONFIRM :LOCK ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309...