Tuesday, August 13, 2013

Security is important>> Lock a File or Folder without using any Software in Windows OS.

Many used to hide their important or confidential files using Folder Hide method in Windows OS. But this is a common method nowadays. Also many used software to hide or lock their files, but this takes a lot of time to compress the files or folder. So here, I am sharing a simple tip. Using this you can hide or lock a file or folder in a second.

Step 1: Open a NOTEPAD and COPY-PASTE the below code:

cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u 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 folder
set/p "pass=>"
if NOT %pass%==rakeshor here goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End 

2. Save the file in .bat format [ eg. Locker.bat] in any location wherever you want.




3. Open or Double-click the Locker.bat file. A LOCKER folder will be create automatically.

4. Copy-Paste all the files and folders that you want to Lock or Hide in that LOCKER folder.

5. Now, open the Locker.bat. Press Y key. and hit Enter. LOCKER folder will be disappeared.




6. If you want to open that LOCKER folder again. Open the Locker.bat again. A password will ask. Type the password that you have set in the code. [ My password is rakeshor]. Hit enter.

7. Now you will see the LOCKER folder.



***This method is not 100% secure.