shopify traffic stats

How to Lock a Folder in Windows 7/8/8.1

Share on Pinterest

Being a Blogger I have a lot of stuff in my laptop that I don’t want to share with any one else, rather I don’t even want that they should even see that stuff. So what I do is simply put up a lock on my folder and keep a secret key to open up the folder. Well don’t think that the trick is only for bloggers 😉 , the trick can be easily implemented by any person who wants to hide his private stuff.

How to lock files and folder with password

You all might be thinking that, its not possible to put up a password for a particular folder so how did I manage to do it?

Well in this post I will be sharing a really cool trick, which will enable you to set up a password for a particular folder easily, you wont even have to use CMD for this trick.

Follow These Steps to Lock a Folder:-

1. Firstly right click, go to new and make a new Notepad.

2. Once you have made a new notepad, open it up and copy the below given code in the notepad as it is.

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%==YourPassword 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

3. Now once you have copied this, as it is Replace this PASSWORD HERE with your desired password.

Capture

4. Once you have followed all the above save this Notepad, file>Save As> and save the notepad by the name “locker.bat”‘

5. Now  Double Click on locker.bat file, and it will automatically open up a folder named PRIVATE.

6. This is the locked folder where you can store all your stuff easily.

7. Once you have copied all the stuff that you want to hide just simply click on the locker.bat file again and you will see that the folder will vanish from there and the next time you open it by clicking on the locker file, it will ask you for the password.

So these were the 7 simple steps that you need to follow, in order to set a password for your folder. Hole you enjoyed it.

Share on Pinterest

4 Comments

  1. pawan prajapati

Reply

Get the Updates
Get Exclusive Updates Directly in your Inbox.
Sign Up For Our Newsletter Today!
SIGN UP
Close

Get Latest Updates in Your Inbox.

Enter Your Email Below
Subscribe
GET FREE AUDIT