How To Make a Password Protected Folder

First of all I'm sorry for not writing a post for a long time.😳 I had some work and also created a new blog so didn't have much time to write one. That new blog is a Sinhala one which contains same posts in this blog. Anyways let's jump into our topic. Today I'm gonna show you how to create a password protected folder. No data costing software needed. Actually I hate using softwares ! 😠Just a little code and you are done.



First of all copy the code given below


@ECHO OFF
 title Folder Secure
 if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
 if NOT EXIST Secure goto MDLOCKER
 :CONFIRM
 echo Are you sure you 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 Secure "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 the Password to unlock folder
 set/p "pass=>"
 if NOT %pass%== errorcode401 goto FAIL
 attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
 ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Secure
 echo Folder Unlocked successfully
 goto End
 :FAIL
 echo Invalid password
 goto end
 :MDLOCKER
 md Secure
 echo Secure created successfully
 goto End
 :End

Now paste that code into the notepad and save it as "Locker.bat" .bat extension is important. This will create a batch file with a gear icon.

Open the Locker.bat file. It will create a folder named "Secure". Put everything you want in that file. Now again open Locker.bat . It will now ask if you want to lock the folder or not. If you want to lock the folder type "y" if not type "n".

To unlock the folder open Locker,bat and type the password. The password is "errorcode401". Press enter and the folder will show up.

That's all for now my fellow readers. See you again with another amazing post.
Share this and tell them MY PC is again on air !
 Good BYE !

Comments

Popular posts from this blog

How To Secure Your OS

Computer Security - Encryption

Great News for all Sri Lankan readers of my blog !