Flipkart.com

Tuesday, 31 January 2012

Lock Folder With Password & Without Any Software



Hello Reader. Hope you all are fine.. In the previous post we explained you how to secure you folder with simple dos command. Today we are going to explain you all how to create a password protected folder and save it as a Control Panel shortcut. Yes, As control panel shortcut, so when some one tries to access the folder, they will land to Control Panel.. :)


Isn't it interesting.... Hmm, So lets begging how to create such a folder. For this you need to have a piece of Code.. :)  Don't worry the code is given below. You just need to copy and past it in a notepad and save as a ".Bat" file. It's always fun when it comes to coding.. :)


You have to put the password in the place where is written "YOUR_PASSWORD_GOES_HERE" just replace it with your own pass.

When you run this code for the first time it will create a new folder with the name "Private". To lock the folder run the code again. It will save the folder as a control panel shortcut and change it attribute as hidden. So that no one can see it. When you want to open the folder just run the code, enter the password you have given. You will find the folder back with all it content inside..


Code:
------


cls
@ECHO OFF
title Folder Private
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
echo -----------------------------------------------
echo             Coded By: Hacker's Team
echo -----------------------------------------------
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 Private "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo -----------------------------------------------
echo             Coded By: Hacker's Team
echo -----------------------------------------------
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== YOUR_PASSWORD_GOES_HERE goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
cls
echo -----------------------------------------------
echo             Coded By: Hacker's Team
echo -----------------------------------------------
echo Folder Unlocked successfully
pause
goto End
:FAIL
cls
echo -----------------------------------------------
echo             Coded By: Hacker's Team
echo -----------------------------------------------
echo Wrong password !
pause
goto end
:MDLOCKER
echo -----------------------------------------------
echo             Coded By: Hacker's Team
echo -----------------------------------------------
echo You are about to create a folder "Private".
pause
md Private
echo Private created successfully
goto End
:End


Copy and paste the above code in notepad and save as any file name but with as an extension .bat. Hope you all like this post.


If you have any queries please feel free to ask. We will be happy to help you.

3 comments:

  1. HOW TO CHANGE MY PASSWORD IN THIS PROG..I JUST FORGET TO CHANGE THAT LINE YOUR_PASSWORD_GOES_HERE.SO I WANT TO CHANGE IT AGAIN..

    ReplyDelete
  2. Hello Tany,

    You can change the password by just editing the .bat file in notepad. Replace the string "YOUR_PASSWORD_GOES_HERE" with you password.

    example:
    if NOT %pass%== tany goto FAIL

    this won't effect you locked folder. you can access the folder even after you edited the bat file with new password.

    Hope I have given you your answer.

    Please do ask if you have any queries. We will be Happy to help you.

    ReplyDelete

IHT