Subscribe For Free Updates!

We'll not spam mate! We promise.

Friday, November 30, 2012

How To Lock A Folder Without Any Software In Windows 7 And Windows XP

Hi friends!All Does your computer is used by more than one users? Do you use to store some confidential data on your computer? Do you want to secure this data from other users? If your answer to these question is yes, you can follow simple steps given ahead to lock a folder on your computer without any software. You don’t need to purchase any software.
Related: - How to Take screen shot in Windows 7, Windows XP without any software.
Although there are some trail versions available of folder lock software but these all come with an expiry period. So these can’t be used after some time. But by using the steps  explained here, you will be able to create a folder which can be locked by password. All the data placed in this folder will be password protected. So you can place all data which you want to hide from other users in this folder. This method works 100% on all versions of Microsoft Windows operating system. Just follow the simple steps given below:-

Open Notepad on your computer.
Paste the following code in Notepad

title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
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.
ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
echo Enter password to Unlock folder
set/p "pass=>"
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
echo Invalid password
goto end
md Locker
echo Locker created successfully
goto End

  •  Change the text YOUR PASSWORD HERE  in the above code with password of your choice.
  • Save As the document as XYZ.bat.  Just add .bat after file name like XYZ.bat You can assign any name instead of XYZ as per your choice.


  • Double click on XYZ.bat file saved in above step.
  • This will generate a folder named Locker just besides the XYZ.bat file.

  • Place all the content in this Locker folder which you want to hide from other computer users.
  • After placing all the content which you want to hide, just double click on XYZ.bat file.
  • This will prompt for your permission to lock this folder. If you want to lock that folder, type Y otherwise type N and hit Enter.
  • Locker folder will disappear.
  • Whenever you want to see the content hidden in locker folder, just double click on XYZ.bat file.This will prompt you to enter password assigned in earlier steps.

  • Just put the password and hit Enter.
  • Locker folder will appear again. Open Locker folder to see the content contained in it. You can add more content which you want to hide.
  • Try to keep this XYZ.bat file created above at a place which is not easily accessible to other users. You can place this .bat file in Windows system folders contained in C drive. because most of computer user don’t like to explore C drive as it contains windows system files.
  • Also try to assign a name to .bat file similar to windows system files. so this file will be ignored by a strange user like other windows system files.
  • So Hide your all valuable data in a password protected folder on your computer without any software on all versions of Windows computers. Don’t forget to share this simple trick with your friends or colleagues.

Please Give Us Your 1 Minute In Sharing This Post!
Follow us →
Share It →


  1. This was Good Information to me! Nice interesting! more & BEST at about Customizing, Monetizing, Advertising,SEO, Driving traffic, ...

  2. This method is not secure. any buddy can get that locked folder's password in few clicks.......

  3. Painchod sale Gashti k bache,teri maa ko tareeka sahi nahi hai

  4. yeahhh man it will work fine.
    but you need to store your password some where else so no one can see it by ryt click >> edit

    refer the link for that. its another batch file you can use

    Dont forget to give yout feedback :)