How to protect a Folder with password in Windows PC/laptop

How to protect a Folder with password in Windows PC/laptop




Secure your folder with password without using any additional software in your Windows 7/8.1/10 PC/laptop

This article will be helpful for those who want a better level of privacy than the level offered by basic OS functionalities. And also do not want to struggle with various software available as free or paid.
In this article we will teach you to password protect a folder(and transfer your private stuff in it) just by using command prompt.
Okay, first of all you need a text editor(notepad will do), and you have to copy the following code there. Replace “YourPassword” with the password you want to give to the folder (without double quotes).
CLS
@ECHO OFF
ECHO WWW.TECHWORM.NET
TITLE FOLDER PRIVATE
IF EXIST TWLOCK 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 TWLOCK
ATTRIB +H +S TWLOCK
ECHO FOLDER LOCKED
GOTO END
:UNLOCK
ECHO ENTER PASSWORD TO UNLOCK FOLDER
SET/P “PASS=>”
IF %PASS%==YOURPASSWORD GOTO DECRYPT
GOTO FAIL
:DECRYPT
ATTRIB -H -S TWLOCK
REN TWLOCK PRIVATE
ECHO FOLDER UNLOCKED SUCCESSFULLY
GOTO END
:FAIL
ECHO INVALID PASSWORD
GOTO END
:MDLOCKER
MD PRIVATE
ECHO PRIVATE CREATED SUCCESSFULLY
GOTO END
:END
 Now save the file as a .bat file(give any name you want, I have given name “Cipher”). 


Third step is to open this file. ( I recommend that you open this batch file by command prompt rather than by clicking on it, in this way you will be able to see all the action)
As you open the file for the first time, it creates a folder named “Private” in the same directory as of the batch file.
You can place your desired stuff in this folder.
Now again open Cipher.bat in cmd and you will be presented with a choice of yes or no. Once you type ‘Y’ the folder will be locked.
After this the folder will be locked.
Whenever you need access,open Cipher.bat again, Enter the required password and the folder will be unlocked.
This is it! You are ready to go. And if you face any problem or have any doubt, comment below and we will resolve asap.



1 comment:


  1. If you ever want to change or up your university grades contact cybergolden hacker he'll get it done and show a proof of work done before payment. He's efficient, reliable and affordable. He can also perform all sorts of hacks including text, whatsapp, password decrypt,hack any mobile phone, Escape Bancruptcy, Delete Criminal Records and the rest

    Email: cybergoldenhacker at gmail dot com


    ReplyDelete

Powered by Blogger.