Lock A Folder With Password Without Software

9:32 PM

Generally We use folder locker to lock any file or folder but now really you can lock folder using a batch files. So  start to Lock everything.......

Step 1: Open Notepad

First of all open Notepad

Step 2: Copy and Paste

Just copy and paste it to the notepad

title Folder Locker By sistunes
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST MyFolder goto MDMyFolder
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 MyFolder "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%== Hello1goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" MyFolder
echo Folder Unlocked successfully
goto End
echo Invalid password
goto end
md MyFolder
echo MyFolder created successfully
goto End

Step 3: Save It

Now save it as locker.bat
your saved file will look like this -

Step 4: Open That

Double click on locker.bat file
A new folder named "MyFolder" will be created.
Now move your all content to this folder.

Step 5: Lock

Done. Double click on locker.bat file and it will ask you for locking folder. Type y and hit enter.
Refresh and your folder will disappear means locked.

Step 6: How to Open

Double click on locker.bat File and now it will ask for password.
By default the password is Hello1. Enter it and your folder will appear.
advertise here !

Hi, I'm Shohag studying Computer Science Engineering at Dhaka International University. I love to write online and always try to share tech tutorial in this personal blog you  can join me on facebook and follow on twitter.

Subscribe via email

Related Posts

Prev Post »
Show comments
Hide comments

Don't Be Shy To Ask Your Question EmoticonEmoticon

Get Free 25$ For Sign Up Bonus


Earn Free Money From Online