Tuesday, April 17, 2012

How To Lock Folder Without Any Software

 

Sometimes when we are working on a shared computer or we have some confidential data that we want to protect it from accessing the other users. A lot of software are available for this purpose. But do you know that you can simply create a locked folder in your computer without any software and you will have a key that will be required to unlock that folder. There are Best methods discussed here . Follow the below steps for do this..

  • Open Notepad [Start-->Run-->Notepad].
  • In your Notepad just Copy/Paste the below code.

cls
:End
@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%==kunal 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

  • In the above batch code the password has been set as kunal.You can change it by editing the following line

if NOT %pass%==kunal goto FAIL


  • Now save this notepad file as yourfoldername.bat ,here.bat is extension of your file. For now I am creatingdailyhackingtips.bat file.


Now a .bat (system) file will be created.


Double Click on this .bat file and you will see a Locker Folder at the same location where your .bat file is saved.



  • Double click on that Locker folder and store your personal data in it.
  • After storing all your data in that folder again double click on .bat file and press Y there to Lock the folder and press Enter... 


  • Now your Locker will hide and only .bat file will be there.
  • Double Click on this .bat file and give your password (here kunal) and hit Enter.

That’s it. Now every time you want to open your secret folder you have to enter the password. You can update this folder any time and infinite number of times.  

                                              It's All Done.

No comments:

Post a Comment

How to avoid our mails going to spam - FIx the issue in 3 simple steps

If you see our emails from (info@jobcurator.in) are going to spam, fix it using below steps. Note: Try this in desktop/laptop 1) Go to any...