There are lot of ways to lock folders on computer. But in this article we going to showing you, how to lock folder without any software. it's very easy to protect your valuable folders and you can enhance your folder secure. In the earlier we mentioned, how to protect USB drive, that method is using USB Secure software. But in this tutorial no need to use any software. Just adding batch code in notepad.
How to Lock Folder using notepad
1. Open Notepad file.
2. Copy the below code and Paste it in notepad.
2. Copy the below code and Paste it in notepad.
cls
:End
@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-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==123456789 goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End
@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-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==123456789 goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
In the above batch code we added password is 123456789, and you can change that password.
3. Now save the notepad file as yourname.bat , (see below)
4. Now a batch file will created in where you saved location.
7. Once again open batch file to lock the stored file in folder. Now press Y and press Enter.3. Now save the notepad file as yourname.bat , (see below)
4. Now a batch file will created in where you saved location.
5. Open that batch file, at the same time you will see Locker folder,
6. Now store your personal files like pictures, videos, documents, etc...
8. Now your folder will be invisible and protected. but batch file be there.
When you want to unlock the folder, then again open batch file and enter your password
Video Tutorial:
very nice trick..
ReplyDeletehow can i rename "Locker" folder name
just right click and do the needed change.
ReplyDeleteNot working for me .. window 7!
ReplyDeleteBuddy, It's working perfectly in windows7.
Deletecheck the above tutorial properly
I DID THAT , BUT I LOCKED IT THEN I FORGET MY PASSWORD HOW I REOPEN IT , OR CHANGE THE PASSWORD?
ReplyDeleteThat's not possible,
Deletejust use Ubuntu, boot a live cd access the windows folder and delete the .bat file :)
DeleteIt is Possible edit that file and change your password
DeleteIt is possible in windows 7, just do right click on the locker.bat and click edit, Now a notepad will appear , so change password as you wish ( mentions in step 2)
Deleteit is deleted by anyone ...
ReplyDeletepostingan yang bagus,,,,,,,,
ReplyDeleteTerima kasih banyak
DeleteThere is a bug in this coding....The folder when searched as Locker, we cannot find it,but when we search the name of any subfolder, we can get into the locker folder with ease... can you tell me how to apply the hidden and read only attribute to the sub files and folders using the batch file?
ReplyDeleteFantastic, GREAT JOB MAN. THANKS
ReplyDeleteif u untik the "Hide protected operating system files(Recommended)" it will show u esyly...
ReplyDeleteworks well for me, thank you very much.
ReplyDeleteA fascinating discussion is definitely worth comment.
ReplyDeleteI do believe that you ought to publish more about this subject, it may not be a taboo subject but usually people don't discuss these topics. To the next! Many thanks!! payday loans
Feel free to surf my site - instant loans
Well done, it is great achievement for you that give me free tool for locking files.
ReplyDeleteStay connected with us
DeleteFirst I copied the same thing from another site, then locked my folder (WITH ALL MY FILES) Then when I entered my password, I cant seem to read it cause it was gone in a blink, then it didnt show the "Private" folder(Its the name of the folder where I put all files) Then went to this site for help. NOOOOOOO ALL MY FILES ARE DERRR!!!
ReplyDelete12 Tips To Increase Subscribers to Your Blog
ReplyDeleteits nice man but the password we type its getting displayed in the screen....... try to rectify as soon as possible.........
ReplyDeleteMy folder somehow disappeared and now all my files are gone!help please!
ReplyDeleteDudu where u kept ur locker folder
DeleteThanks To You..
ReplyDeleteIts a brilliant effort :)
Hey Really Nice Share Keep it Up Please Can You Tell me Where You Get Your Blog Template
ReplyDeleteThnaks Buddy...
DeleteActually this template made by our Designer
any way this is not useful it is showing password and if searched file name it is showing its a waste no use
ReplyDeleteit's work for me
ReplyDeleteGreat Trick
ReplyDeleteThe information reg. how to lcok folder without any software is fine.
ReplyDeleteand it's works out
This comment has been removed by the author.
ReplyDeletei have window 8 64 bit ....not working....
ReplyDeletewow to good your article is to good and very helpful regarding save your important documents file. this script is working properly in Window 8 64 bit. i have installed win8 64 bit and tried this script. this script was work proper done....
ReplyDelete