Upgrade

Friday, 9 November 2012

LOCK A FOLDER WITHOUT ANY SOFTWARE IN WINDOWS 7

In Windows 7, a folder can be locked without using any software application or any built in program. In this tutorial we deal with this procedure to lock a folder without the assistance of any software in In this tutorial we deal with the procedure to lock a folder without the assistance of any software in the windows 7.

User has to follow the below procedure::



• In the first step user has to create the new folder anywhere in any of your drives.

• Now make a TXT file in the folder created.

• Copy and paste the code inside the New Document.

Code:
Quote:
Quote: 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 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 Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== password here goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End



• In the next step,  go to the save as option and name the file as “locker.bat” and user has to be sure to change the file as “save as type” from that of text to All files.

• Now user has to go back to the folder and you can see a locker.bat file you saved. Double click the batch file (locker.bat).

• A folder named PRIVATE will be automatically created in the folder.

• Double click on the locker.bat file again. This time, a command prompt will open and ask you for whether you want to lock the folder PRIVATE or not.

 press 'y' to lock the folder.


•After selecting 'y' for locking the PRIVATE folder, the folder will be hidden.

• Double click the locker.bat file again. User will be asked for the password confirmation.

• Enter the user account password here that you use to login to your account.

• PRIVATE folder will be shown now. Copy what data you want to lock into the PRIVATE folder.



** once you unlock the foldr using the password, you have to again run locker.bat file to lock the PRIVATE folder again.

And here we go... you have a password locked folder without any application software.