Sunday, 16 April 2017

Make Password Protected Folder With Using Notepad

  No comments
If you don't want to use folder lock or any third party software which provides functionalities to protect folder with password. instead of using these software you can make your own folder lock
and you can make changes any time.


Step 1: Open Notepad and copy and paste below code
cls
@ECHO OFF
title gangsofcoder.blogspot.com
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST MyFolder goto MDMyFolder 
:CONFIRM
echo Are you sure you want 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.
goto CONFIRM
:LOCK
ren MyFolder "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%== goc goto 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
:FAIL
echo Invalid password
goto end
:MDMyFolder
md MyFolder
echo MyFolder created successfully
goto End
:End
Step 2: Save above code as .bat extension (i.e codergangs.bat) 
After that go to destination where you saved this file and then double click on codergangs.bat file. 
You would have a new folder with the name of MyFolder So here you need to put your personal stuff that you want to hide. 

No comments :

Post a Comment

Loading...