Breaking News

Thursday, 9 March 2017

How to lock a folder without using any software

Many of us want to lock a folder without using any software because most of the software are paid versions. So today you will learn to lock a folder without using any software.Here we go for video tutorial : 

Step 1 : Open Notepad

Step 2 : Copy the given code below into the notepad

title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
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.
ren Locker "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 folder
set/p "pass=>"
if NOT %pass%==mypassword 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
echo Invalid password
goto end
md Locker
echo Locker created successfully
goto End
Step 3 : Save it as lock.bat extension and the icon will appear like this on your desktop

 Step 4 : Open the bat extension file and it will take you to command prompt like the one below 

Step 5 : That's it , your done with the simple code trick to lock and unlock the folder. To unlock the folder you need a password and the default password is : mypassword 

Note : If you want to change the password , then right click on the bat extension file and edit with notepad or any text editor and change the default password "mypassword" in the code to your own password.

Thank you , If any doubts feel free to comment below.

No comments:

Post a Comment

Designed By Published By Kaizen Template - Support KaizenThemes