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

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

by Ravi Singh
1 comment 0 views

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

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

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.Change Folder Name

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.If you get any warnings from your Antivirus, please allow the access

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

Godspower August 16, 2016 - 7:15 pm

Thanks for this great tut..

Reply

Leave a Reply

[script_25]

This site uses Akismet to reduce spam. Learn how your comment data is processed.

You may also like

TechPosts Media, A Technology Media Company – All Right Reserved. Designed and Developed by PenciDesign

DigitalOcean Referral Badge

Adblock Detected

Please support us by disabling your AdBlocker extension from your browsers for our website.