After you've saved your code, you'll see a batch file. Double click on this batch file to create a folder locker, a new folder named Locker would be formed at the same location, now bring all the files or folder you want to hide in the Locker folder. Double click on the batch file to lock the folder namely 'locker' if you want to view or unlock your files, double click on the batch file and you would be prompted for password enter your desired password and enjoy access. Now anyone who can view your locked files need to know the password first.
Now the code:
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%==type your
password here 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
Sure you're now happy to know you can hide your important folders under a password. Now no body can come to your computer and edit or access your private documents again.
Consider sharing this post if you like it. Use the sharing tools below. Feel free to ask me questions if you encounter problems.
Tidak ada komentar:
Posting Komentar