How to Lock Folder without any Software on Windows 7/ XP /Vista

17
How to Lock Folder without software in PC

Do you want to protect your Folders and files on your computer without using any software? Then this guide will help you.  There are several software programs available online, which can lock your Folder containing files with a password. If someone wants to access this folder, they have to provide the password. But if you wish to lock a folder that too without using any third-party software then follow simple methods instructed in this article.

How to Lock Folder without software in PC

 How to Lock Folder without any Software

Follow below steps to lock any folder without password in PC. This method will work on Windows 7, Windows XP and Windows Vista, not tested on Windows 8. Let us know if it works.

Step 1: Open Notepad on your PC

Step 2: Copy and Paste this code in the Notepad

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%==YourPassword 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

Step 3: Now in the above code, look for the text highlighted in red “YourPassword.”

Step 4: Now replace your desired password with that text.

Step 5: Now save the file with name locker.bat and save it as All files.

Step 6: Close the Notepad.

That’s it; you have created a password protected folder. Follow below steps to know how access and save files in that folder.

Step 7:  Open the Locker file you created by double-clicking on it

Step 8: After you double-click you’ll see a new Folder with the name Locker

Step 9: Drag and drop the files you want to hide to the folder named Locker

Step 10: After dragging or copying all the files to Locker Folder double-click on Locker.bat

Step 11: Now in the command window you’ll see a message “Are you sure u want to Lock the folder(Y/N)

Step 11: Type or press Y on your keyboard

Now the locker folder will be hidden from others. If you want to open that folder again, double-click on Locker.bat and enter the password (same password you replaced with red highlighted text).

If you want to hide the file, again follow Step 9 and 10.

By following the above method you can hide the file, but someone with the knowledge of editing a  .bat file can easily edit your password and access the data. To overcome this, we will compile the file to make it executable, and no one will be able to edit the file.

 The utility we are using here is Bat_To_Exe_Converter. It will convert your Bat file into .exe (executable)  file.

Step 1: Download  Bat_To_Exe_Converter

Step 2: After downloading it extract the file

Step 3: After extracting open the folder Bat_To_Exe_Converter

Step 4: Now select your OS 32 or 64 bit and run the program

Step 5: Now in the pop-up window choose the .bat file (locker.bat)

Step 6:  After selecting the file, click on Compile

That’s it. This program will create a .exe file of your locker.bat file. Now you can delete you locker.bat file and use Locker.exe.

By following these simple steps, you can lock your folder or files without any software program. Do share this with your friends and let us know your views in the comments below.

17 COMMENTS

  1. it is not working , the locked folder shows , when you checked ” hide protected operating system file” in folder option .

  2. Hi,

    Its working good but not 100%. If any 1 open that file in EDIT mode the password will display. So plz fix this Bug.

  3. It’s working fine, but not 100%, if some one searching blank file it will shown all the locked files under “Control Panel” folder.
    Please share some other idea to lock the folders

  4. searching blank file it will shown all the locked files under “Control Panel” folder.
    the file will open and will be edited. so please make it fullproof

LEAVE A REPLY

Please enter your comment!
Please enter your name here