Tips & Tricks | Tech News | Free Apps | Freebies | Amazon Quiz


Thursday, April 16, 2020

How to Lock a Folder in Windows 10 Without Any Software | Tips & Tricks

Hi Guys, today in this post I'm going to share a cool trick to lock your folder in Windows 10 without any software.

There are always a file or folder that you want to keep away from prying eyes. Windows doesn't give you an option to lock any Folder by default. You may need to download a third-party software to lock a folder, it may cost you few bugs or it can slow down your system. Alternatively, you can Hide your file or folder like most of the people do but that's not secure either.

But there's a way you can easily lock a Folder without spending a single penny.

How to Lock a Folder in Windows 10 Without Any Software | Tips & Tricks 

Also ReadALT Balaji Subscription FREE | ALT Balaji Premium Account For FREE 2020 (100% Working Trick)

So, today you are going to be a programmer without any prior programming knowledge.


Here's How You Can Lock a Folder in Windows 10 Without Any Software

1) Create a Folder in your Drive, this will be the path where all your private files and folders will be stored.

2) Now open Notepad and copy paste the below code.


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%== PASSWORD-HERE 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


3) Now replace the "Password Here" with your Desired Password.

4) Then go to File > Save As and name file as Lock.bat

5) Double click on Lock.bat file and cmd prompt will ask whether you want to lock folder. Type Y and hit Enter.

6) Once done, Private folder is now disappeared.

7) To access files, double click on Lock.bat file and enter your password on cmd window.

Also ReadHow To Enable Color Correction On Android | Tips & Tricks

How to Lock a Folder in Windows 10 Without Any Software | Tips & Tricks 

Support Me by Subscribing My Youtube Channel:

Comment below if you have any Queries or Requests.

No comments:

Post a Comment