Howtofix91 - Has a highly confidential documents that it makes us worry if there is someone who can open it. It will be safer if we lock the document in a folder . Then how to lock the folder ? . On this occasion , I would like to share about learning about computer tricks for you , this time relating my post on how to password protect folders with a lightweight software . but this time we will try how to lock folders with password without using software.melainkan using a script .
Certainly curious is not it ?? well for you who are curious just deh I will discuss about how to easily lock a folder with a password so that the file can not be accessed by other people.
1. Open your windows explorer , right click - new - text document
2. Copy script berikut ke dalam text document yang telah dibuat tadi tanpa tanda kutip
" Quote:
Quote: cls
@ECHO OFF
title Folder Private
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" 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 "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 folder
set/p "pass=>"
if NOT %pass%== password anda goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End "
3. In the text below in italics bewarna " password " is filled with passwords or keywords to access the folder let's just say the password " 12345 "
then the script / code should be like
" Quote:
Quote : cls
ECHO OFF
Private Folder title
if EXIST "Control Panel. { 21EC2020-3AEA 1069 - A2DD - 08002B30309D } " 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
Invalid echo choice.
goto CONFIRM
: LOCK
Private ren "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 the folder
set / p " pass = > "
if NOT % pass % == 12345 goto FAIL
attrib -s -h "Control Panel. { 21EC2020-3AEA 1069 - A2DD - 08002B30309D } "
ren "Control Panel. { 21EC2020-3AEA 1069 - A2DD - 08002B30309D } " Private
echo Folder Unlocked successfully
goto End
: FAIL
echo Invalid password
goto end
: MDLOCKER
md Private
echo Private created successfully
goto End : End "
3. Save text document with the name " locker.bat " . and select all files in the save as type
4. Double click on the file named locker.bat earlier
5. It be will appear command / command like dibawah.tekan letter y on the keyboard and click ente
6. If it is, it will display a folder named private . nah .... , private difolder is where you put important files felt other people do not know and want in a password
7. If you 've put your important files to a private folder, and you want to lock the back way password.lakukan no.4 and 5
8. And if you want to access a folder that dipassword earlier , click File locker.bat and earlier masukkkan your password , then press enter
9. Enjoy if confused and have not managed to get on with it bro ask, do not hesitate to hesitate with me , because I will reply and provide a solution as soon as possible