Lock Folders with Password Without Any Software

How to Lock Folders with Password Without Any Software

Hello guys, In today's blog, I will tell you how to lock a folder without any third-party app in just 2 minutes by using a simple batch script to lock and unlock it. This trick is compatible with all windows operating systems.

Also read: Upgrade intel HD graphics 3000 to 4000 in 2 minutes

How to take screenshots in Windows 10.

What all you just need to is to follow the following steps:

Step 1: Open Notepad. Copy the below code and save it as "Locker.bat" Make sure you select file type as "All Files"

Step 2: Double click the batch file that you have created. You will be prompted with a password. Enter 'techtics' . A new folder 'Private' will be created in the same directory.

Step 3: Copy all the folders and files that you want to password protect into the Private folder 

Step 4: Again double click the batch file and the Private folder will be hidden.



if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK

if NOT EXIST Private goto MDPrivate


echo Are you sure to lock this 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.



ren Private "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"

attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"

echo Folder locked

goto End


echo Enter password to Unlock Your Secure Folder

set/p "pass=>"

if NOT %pass%== techtics goto FAIL

attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"

ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private

echo Folder Unlocked successfully

goto End


echo Invalid password

goto end


md Private

echo Private created successfully

goto End


Post a Comment


  1. Casino at Borgata - JTM Hub
    Find out all about the 안양 출장안마 Borgata Hotel Casino and Borgata 화성 출장샵 Casino, including hotel 군산 출장안마 rooms, restaurants, a concierge and 사천 출장샵 reviews. Rating: 광양 출장마사지 4 · ‎18 reviews