In this post I will discuss about how to lock a folder without using software , but using NotepadWell
maybe you're often want to hide your private files Files that are
not known by others , but do not know how to do that, in fact many additional
applications that can be used to lock a folder , such as a folder lock
or other similar applications , but we have to download it first , and usually like this paid app
actually we do not have to use additional applications , just use notepad we can lock our personal folders ,here is how:
1.make your own folder such as for example the folder "private "
2 . create a new notepad file
3 . copy & paste the code below into the notepad that you have created
cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u 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 Locker "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%==riza458 goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End
4.After
copy refer to the section " if NOT % pass% == password here goto FAIL "
replace text password here ( the blue writing ) with your own password
5 . Give the name of the document with the name locker.bat . How ?,
in the document select the file menu , choose save as , the file name is : locker.bat and replaced the save as type fromtext document to all files , click
save .
6 . now
back to your private folder , you will see 2 files one is
locker.bat file and the other one is a new text document files . doubleclick on the file locker.bat and will appear Folder that named Locker
7 . Well on this locker folder is where you enter/put your personal file
8 . To
lock and at the same time hide the folder , just double click on the
locker folder and will appear command to lock the folder ( folder locking ) or
not ( Y / N )
9 . type Y and press enter on the keyboard , and the locker folder will disappear
10 . To Unlock the Locker folder , doubleclick on the locker.bat file , enter your
password and press enter the locker folder will be appear
Good luck !
No comments:
Post a Comment