Scroll untuk baca artikel
Tips & TricksTutorial

How to Easily Lock Folders in Windows

194
×

How to Easily Lock Folders in Windows

Sebarkan artikel ini
tutorial
tutorial

Data and privacy on computers is an absolute right for us as computer owners.

Some people may not want the data on their computers to be accessed by others, worse still being misused by others. Therefore, securing our computer data is the first step we need to do.

There are several ways to secure data on the computer, one of them by giving a password on your important folders. In this tutorial, I will explain how to lock folders on the computer. This tutorial can be applied to some versions of windows, such as windows xp, windows vista, windows 7,  windows 8 or windows 10.

How do I lock folders?

To lock important folders on your computer, without using software.

1. First we first create the folder you want to lock. In this tutorial, I created a folder called Code IT World.

create folder code it world

2. Go into the folder you just created (the folder you want to lock), then create a new text file by right click> New> Text Document.

net text document folder Code IT World

3. Enter the script below into the text file.

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_DISINI 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

4. Replace PASSWORD HERE with the password you want. For example, I use codeitworld123 as the password folder of the IT World Code.

password in folder

5. After that Save As text file and give name of locked.bat and change Save as type to All files.

locked to format bat

6. After you have finished creating the file, please delete the New Text Document file.delete New text document

7. Double click the file locker and will automatically appear a folder named Private. Save all your important files into the Private folder.

new folder private locked

8. After you have finished placing the important files into the Private folder, run the file locker again. You will see the display as shown below, press Y and then Enter key.

lock the folder

8. Automatically Private folder (where you save your important files) will be lost.

folder hidden in lock

9. To view the folder, just double click the file locker. You will see a view like the picture below, then enter the password you created earlier to open it.

enter password to unlock folder

10. Private folder reappears. And if you want to change as well as eliminate it again, just double click the folder locker, press Y and then Enter key.

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *

Situs ini menggunakan Akismet untuk mengurangi spam. Pelajari bagaimana data komentar Anda diproses.

Verified by MonsterInsights