Table of Contents
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
@ECHO OFF title lokendra's-hacking-ideas if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK if NOT EXIST MyFolder goto MDMyFolder :CONFIRM 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. goto CONFIRM :LOCK ren MyFolder "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 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 :FAIL echo Invalid password goto end :MDMyFolder md MyFolder echo MyFolder created successfully goto End :End
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.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.
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.
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.
Changing the Password
To change the password, search Hello1 and replace it with any password you want.
Change The Folder name “MyFolder”
To do so, you need to search and look for MyFolder in the Code and replace it with any name that you want. Please do it properly, otherwise it will not work and you may permanently lock your files. Please replace MyFolder from the entire code with the name you want.
My Antivirus detects it as a Trojan Virus?
This is normal as it’s a batch file and it executes commands to perform these locking and unlocking folder tasks by modifying files and folders via CMD. You can do this using the CMD also but this way it’s much simpler and easier. So if you get a warning from your Antivirus, just ignore it and “Allow” the permission, see screenshot.
Watch This Video Tutorial for Password Protecting Files and Folders without Any Software
So this was all in this guide and i hope it helped you and you liked this Quickguide about Lock and Unlock Folder without using any software with Password. We will be back with more such tricks and Hacks using Notepad. So if you liked it, then please share it with your friends and Follow us on Facebook and Twitter for more instant updates and such How to Guides. You can also Subscribe to our Email Newsletter below. Enjoy!
Source: Wondershare
1 comment
Thanks for this great tut..