Quick Guide: How to Lock Files or Folder without Any Software with Password

This guide will take you through a process of Locking and unlocking folder and files inside it without using any software. We will use a bit of code which can be modified according to your preference and i assure that it’s 100% safe and secure method to lock your files and protect them from unauthorized access. This tutorial is really easy and simple to follow. All you need is very basic computer knowledge. So let’s get started,

Lock Folder with Password and without using Any Software

Step 1: Open Notepad

Step 2: Paste the following code in the Notepad

title lokendra's-hacking-ideas
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST MyFolder goto MDMyFolder
echo Are you sure to lock this 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 MyFolder "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 Your Secure Folder
set/p "pass=>"
if NOT %pass%== Hello1goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" MyFolder
echo Folder Unlocked successfully
goto End
echo Invalid password
goto end
md MyFolder
echo MyFolder created successfully
goto End

Paste the Code

Step 3: Now Save it as File Locker.bat. To do so, click on File>Save and select “*All Files” from drop-down and name the file as File Locker.batSave As File Locker.batSave file as File Locker.bat

Step 4: Now go the folder where you saved the Locker.bat file and double click on it. You will notice that a New folder by name “MyFolder” has been created automatically.MyFolder

Locking the Folder

Step 5: Now move or copy all your content that you want to hide or lock in “MyFolder“. Once you have moved all the content, double click on File Locker.bat file again and it will ask you to lock the “MyFolder”. Type y and hit enter. You’ll notice that MyFolder has disappeared and so all your files which you moved in it.Type Y to Lock folder

Unlocking the Folder and Files inside it

Step 6: To Unlock your Folder and see your files, double click on File Locker.bat file and enter the Password which is Hello1 by default. Enter this password and your folder will appear immediately. To lock it again, follow step 5.Unlock the Locked folder

Changing the Password

To change the password, search Hello1 and replace it with any password you want.Change Password

"use strict"; var adace_load_5da96a45465f6 = function(){ var viewport = $(window).width(); var tabletStart = 601; var landscapeStart = 801; var tabletEnd = 961; var content = '%3Cscript%20async%20src%3D%22%2F%2Fpagead2.googlesyndication.com%2Fpagead%2Fjs%2Fadsbygoogle.js%22%3E%3C%2Fscript%3E%0A%3Cstyle%3E%0A%40media%28max-width%3A%20600px%29%20%7B.adace_adsense_5da96a4546587%20%7Bwidth%3A300px%3B%20height%3A250px%7D%7D%0A%40media%28min-width%3A%20601px%29%20%7B.adace_adsense_5da96a4546587%20%7Bwidth%3A336px%3B%20height%3A280px%7D%7D%0A%40media%28min-width%3A%20801px%29%20%7B.adace_adsense_5da96a4546587%20%7Bwidth%3A336px%3B%20height%3A280px%7D%7D%0A%40media%28min-width%3A%20961px%29%20%7B.adace_adsense_5da96a4546587%20%7Bwidth%3A336px%3B%20height%3A280px%7D%7D%0A%3C%2Fstyle%3E%0A%09%09%3Cins%20class%3D%22adsbygoogle%20adace_adsense_5da96a4546587%22%0A%09%09style%3D%22display%3Ablock%3Bwidth%3A336px%3Bheight%3A280px%3B%22%0A%09%09data-ad-client%3D%22ca-pub-1582616950037164%22%0A%09%09data-ad-slot%3D%227513274354%22%0A%09%09%0A%09%09%3E%3C%2Fins%3E%0A%09%09%3Cscript%3E%28adsbygoogle%20%3D%20window.adsbygoogle%20%7C%7C%20%5B%5D%29.push%28%7B%7D%29%3B%3C%2Fscript%3E'; var unpack = true; if(viewport=tabletStart && viewport=landscapeStart && viewport=tabletStart && viewport=tabletEnd){ if ($wrapper.hasClass('.adace-hide-on-desktop')){ $wrapper.remove(); } } if(unpack) { $self.replaceWith(decodeURIComponent(content)); } } if($wrapper.css('visibility') === 'visible' ) { adace_load_5da96a45465f6(); } else { //fire when visible. var refreshIntervalId = setInterval(function(){ if($wrapper.css('visibility') === 'visible' ) { adace_load_5da96a45465f6(); clearInterval(refreshIntervalId); } }, 999); }