Ads

Wednesday, August 27, 2014

Create a password lock folder without using any software

Now a days, there are various types of software are available to lock folders and they are expensive or freeware and also uses computer memory and makes your system slow. So, here is new trick for you to create a folder just by double clicking on a file. This file contain some simple command that create a folder for you which is controlled by that file means you can lock and unlock it by clicking on the file.
         For locking it you will not ask any password but for unlocking it you will need the require password.
So, here are simple steps to create that file as follows :
Step 1: Open notepad from start menu or by typing notepad in run as. Just copy and paste below command in notepad .

cls
@ECHO OFF
title tipsntrickspc.blogspot.in
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST MyFolder goto MDMyFolder
:CONFIRM
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.
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 Your Secure Folder
set/p "pass=>"
if NOT %pass%== 
tipsntrickspc 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 this file as with any name like lock.bat or password.bat 
Note: .bat extension is required for the folder name.
Step 3: Now when you double click on your file, it will create a folder with name "My Folder". Now move your data into it and now just open that file again and type "yes". 
Congo.. Now your folder is LOCKED .

NOTE: For unlocking the folder just open that file and type the password "tipsntrickspc" and press Enter .Now your folder is fully unlocked. You can also change this password by simply editing the the above code and save it.

No comments:

Post a Comment