To Create A Folder Lock Without Any Software





To Create A Folder Lock Without Any Software

Part - I

Follow These Simple 3 Steps
Step-1> Open Notepad 
Step-2> Copy and Paste Following Code in Notepad




cls
@echo off
title Folder Locker
IF EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" GOTO UNLOCK
IF NOT EXIST Locker GOTO MDLOCKER
echo Folder Created.
: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 Locker "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 the Folder : 
set/p "pass=>"
IF NOT %pass% == Type Your Password Here  GOTO FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" LOCK
echo Folder Unlocked Successfully.
GOTO END 
:FAIL
echo Invalid Password!
GOTO END
:MDLOCKER
md Locker
echo Folder created.
GOTO ENDa
:END
PAUSE


Setp-3> Replace your password on the place of "Type Your Password Here" in the code
and save this file as Lock.bat 



How To I Lock My Data By This Method?
Step-1> double click on Lock.bat
When you will double Click on this file, a Folder will be Create Named "Locker"
Step-2> Save your data in this folder
Step-3> Again Double Click on Lock.bat file, when cmd open  press Y and press Enter
Done

How To Unlock MY Folder?
Step-1> Double Click On Lock.bat
Step-2> Type Your Password and Press Enter
Done




Part – II
By this process you can password protect the folder and nobody can get access to the folder without the password. But still there is some risk. If somebody is a computer savvy then he can easily retrieve the password from your batch file. He can easily find the password by choosing “Edit” option from the right-click context menu.
So, to prevent from that option you can make an executable file of the batch file. The facility of the executable file is that nobody can’t see the source code of an exe file. Here we’ve described the process of converting the batch file to executable (.exe) file.

At first you need a compiler that compiles the batch file to an executable file.
2. Now run the application and put the source path of the batch file, then the target executable file name with location.
3. Click on “Compile” button.
That’s all. Delete the batch file “Lock.bat”. You can now protect or access the folder by using the exe file (key.exe). Your data is now fully protected.


NOTE: Work In XP and 7




Share on Google Plus
If you have any useful information or tips then please share with us at xpertsinfotech@gmail.com.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment