Sunday, December 12, 2010

Lock up a folder without using any software

This is a different way to lock up a folder without using any software.
This is not hiding a folder but locking it..using batch file...

What is batch file???
It is this file (command.com) which handles all DOS commands that you
give at the DOS prompt---such as COPY, DIR, DEL etc.

--------code--------

@ECHO OFF
title Folder Hide
if not exist readme_locker.txt goto readme
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Personal goto MDLOCKER
:CONFIRM
echo Are you sure you want to lock the 'Personal' folderY/N)
set /p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto exit
if %cho%==N goto exit
echo Invalid choice. Try Again.
goto CONFIRM
:LOCK
ren Personal "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
pause
goto exit
:UNLOCK
echo Enter password to unlock folder
set /p "pass= >"
attrib -h -s "c:\windows\setup.ecr"
set /p oripass= < c:\windows\setup.ecr
attrib +h +s "c:\windows\setup.ecr"
if NOT %pass% == %oripass% goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Personal
echo Folder Unlocked successfully
pause
goto exit
:FAIL
echo Invalid password....
echo If you forgot the password mail me:mani.joshi9305@gmail.com
pause
goto exit
:MDLOCKER
rem echo Enter the name for create a folder to hide:
rem set /p "name= >"
echo Enter the password for hide the 'Personal' folder:
set /p "msg=>"
del "c:\windows\setup.ecr"
cls
echo %msg% >> c:\windows\setup.ecr
attrib +h +s "c:\windows\setup.ecr"
md Personal
echo 'Personal' Folder created successfully ...
echo It is created in the current directory...
pause
goto exit
:readme
echo Readme file created....
echo Follow the procedure according to the readme_locker.txt
echo ================================================>> readme_locker.txt
echo Folderlocker 1.0 (Beta) * README FILE * Nov 22, 2010 Made By: Manish Joshi(Mahi)>> readme_locker.txt
echo =============================================== >> readme_locker.txt
echo CONTENTS: >> readme_locker.txt
echo 1. What is Folderlocker? >> readme_locker.txt
echo 2. Steps >> readme_locker.txt
echo 3. Contacts >> readme_locker.txt
echo 1. What is Folderlocker? >> readme_locker.txt
echo ------------------------ >> readme_locker.txt
echo Folder locker is used for the protect a folder with a password. >>readme_locker.txt
echo 2. Steps >> readme_locker.txt
echo -------- >> readme_locker.txt
echo i.Enter the password for hide the 'Personal' folder >> readme_locker.txt
echo ii.Drag the files into 'Personal' folder to protect >> readme_locker.txt
echo iii.Run the folderlocker.exe again >> readme_locker.txt
echo iv.If you want to lock the folder hit 'y' or 'Y' Without Quotes >> readme_locker.txt
echo vi.If you want to retrieve the folder run the folderlocker.exe again >> readme_locker.txt
echo vii.Give the Correct password >> readme_locker.txt
echo 3. Contacts >> readme_locker.txt
echo ----------- >> readme_locker.txt
echo Yahoo!: >> readme_locker.txt
echo Google: >> readme_locker.txt
echo Note: >> readme_locker.txt
echo ----- >> readme_locker.txt
echo ============================================== >>readme_locker.txt
pause

:exit


--------code--------

Step1) Copy the give code in a note pad and save the note pad in your pc with the name name.bat (that is with the extension of .bat). you can replace the name portion with anything u want. ( In place of password in the code given type your desired password.)

Step 2) A batch file will be created where you hav saved. Now double click on it , it will make a folder with the name locker at the same place where the batch file is save.

Step3) Now add the files you want to be locked in that folder.

Step 4) Double click on the batch file. It will ask for locking the folder formed. Type y(yes). The folder will be locked and hidden.

Step5) To unlock,double click on batch file again and enter the password in the new window opened.

No comments:

Post a Comment