In your laptop there are important documents that need to be secure and not let anyone enter. To do this, today I will guide you how to quickly and simply set a password for Folder and File without installing software.
Reasons to set a password for Folder, File on the computer :
- Use to protect your own personal data.
- Avoid deleting the wrong Folder, File on the computer.
- Keep sensitive information confidential.
1. Instructions on how to set a password for Folder, File on the computer
Step 1 : Go to the Folder you want to set a password for> Right-click, select New > Select Text Document .
Step 2 : Copy and paste the code 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 "for =>" if% gives% == Y goto LOCK if% gives% == y goto LOCK if% gives% == n goto END if% gives% == 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
Step 3 : In the above code, replace PASSWORD_GOES_HERE with the password you want to set.
For example , password is 123.
Step 4 : Go to File > Select Save As .
In the tab Save as type , you name it locker.bat and select All Files > Click Save to save.
Now you can delete the text file.
Step 5 : Click on the locker file to open, at this time a new folder will appear called Private . This is the place to store the files that you want to secure.
Step 6 : After finishing copying data via Private > Click on locker file > A dialog box appears and you just need to press " Y " key > Press ENTER .
Once done, the Private folder will disappear. Your data is protected.
Step 7 : To reappear the Private dialog box, you just need to double-click and locker file > Enter the password you set up from the beginning> Press ENTER .
Instructions on how to review Folder, File
Step 1 : In Folder, File, click View > Select Options .
Step 2 : In the View tab > Select Show hidden files, folders, and drives > Uncheck Hide protecte d operating system files > OK .
Once done, your Folder will appear.
3. Instructions on how to change key password for Folder, File
Step 1 : Right-click the locker file and choose Edit .
Step 2 : Text dialog box appears> Delete old password and install a new one.
Step 3 : Save it by going to File > Select Save As > In the Save as type tab, name it locker.bat and select All Files > Click Save .
The above article has shown you how to set a password, password for folders, files on Windows 10 computer simply and quickly. I wish you all success!