Lock Your Files And Folders In Windows 7/8/8.1/10 Without Downloading Or Buying Any Additional Software - With Video Tutorial - PC SEEKERS

Lock Your Files And Folders In Windows 7/8/8.1/10 Without Downloading Or Buying Any Additional Software - With Video Tutorial

Ever felt that you need to hide or password protect your files or folders? If yes then grace yourselves as this might just help you. There are a lot of methods that you can use to create a password protected folder, most of which require the use of some third party software. Using this neat method you can hide your folders with a quick batch script.

Note: 1.It’s important to note that this will not actually conceal your data from somebody who knows what they are doing.
          2. I have also provided instructions at the bottom for how to see the files again if you forget how to see them.

How to create a password protected folder?

Step1: Open the folder which contains files or subfolders you want to protect.

Step2: Create  a new text document (you can name it anything) inside the folder by right clicking in the folder--> New--> Text Document--> hit Enter.


Step3: Open the text document and enter or copy-paste the script given below:

cls
@ECHO OFF
title Folder Private
if EXIST "HTG Locker" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
echo Are you sure you 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 Private "HTG Locker"
attrib +h +s "HTG Locker"
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== PASSWORD_GOES_HERE goto FAIL
attrib -h -s "HTG Locker"
ren "HTG Locker" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End


Step4: Find PASSWORD_GOES_HERE in the script and change it to your password that you want to set.


Step5: Click on File--> Save as-->File_name.bat--> Change the file type from 'text documents (*.txt)' to 'All files'. (Remember to add .bat to the document name to create a batch file). Once the file is saved as a batch file you can delete the original text file.


Step6: Run the batch file by double clicking on it, it will create a folder named 'Private'. This is where you can store all your secret things. Add your secret things to this folder.


Step7: Once you are done adding files and subfolders to Private folder you can again run the batch file by double clicking on it. This will open a command prompt asking: Are you sure you want to lock the folder (Y/N)?
Type Y and hit enter key.

You will notice that the Private folder quickly disappears.


There you go, your secret data is now hidden and password encrypted. You just have to run the batch file again, enter the right password and then hit the enter key to see the private folder again.


Note: Run the batch file again, type in 'Y' and hit Enter to lock and hide the private folder again.

You can rename the private folder if you want but make sure that other folder with the same name does not already exists.

Video Tutorial:

To watch it on YouTube Click here:https://youtu.be/8bUiz_De3ZA
 How to see your files again:
1. Entering password: Run the batch file by double clicking--> (You will be prompted for a password)--> Enter the right password that you initially entered in the text/batch document, you will then be able to see the private folder and opening it will provide you access to your secret files.

2. If you forget the password: Just right click on the batch file and select edit. You will be able to find your password.


3. By showing hidden files, folders and drives: In case you delete the .bat file which would provide you access to the private folder then by using this method you can still access the secret files.

Open control panel--> go to Appearance and Personalisation--> click folder options (or file explorer options in case of windows 10) --> click 'view' tab--> Check 'show  hidden files, folders and drives' and uncheck 'hide protected operating system files'.


Now you will be able to access the protected files in the private folder.

Important note: It’s definitely not a 100% secure way to hide your files, but it is fun.

If you have any queries, feel free to ask/mention them in the comments section below. I will answer them ASAP.

2 comments:

•Comments should be written in English.
•Spam and promotional links are not allowed in comments and will be deleted.
•Outgoing links to relevant articles are allowed in the comments, but the comment should also be relevant to the article.
•Comments containing abusive or offensive language or content will be deleted. This includes abusive, offensive, attacking, threatening, vulgar and/or misleading content or language.
•Comments that attack or harass any individual will be deleted.
•PC Seekers Moderators have the right to edit or delete any comment submitted to the site without any prior notice.
•If you have any queries about the commenting policy, do let us know through the Contact Us page.