Secure your files on a password protected folder by using a simple batch file.
It doesn’t take to be a computer hacker or something to do this.
It’s easy as ABC
Let’s start by opening Notepad.
Let’s start by opening Notepad.
And paste this code:
cls
@ECHO OFF
title Folder Confidential
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Confidential 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 Confidential "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 the Password to unlock folder
set/p "pass=>"
if NOT %pass%== osigaga goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Confidential
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md confidential
echo Confidential created successfully
goto End
:End
After pasting it, find the code “(if NOT %pass%== osigaga goto FAIL)” and replace "osigaga "with your preferred password (w/o quotes).
And save it in your desktop as “config.bat”. Don’t forget to save as “All files” instead of “.txt”.
Then execute the batch file (config.bat) and this prompt will show up.
And then it will create a folder entitled “Locker”.
This is were you will put your private files.
And
after putting your files in the Locker, execute “config.bat” again. A
prompt will show up asking if you want to lock the folder. Type “y” for
yes and “n” for no, hit Enter.
And the folder will be hidden.
To unhide this, execute “config.bat” and a prompt will ask for password.
As
you can see, the folder is now entitled “LOCK” rename it as
“Locker” every time you will lock it, otherwise it will create another
Locker folder.
So there you have it! Your files are safe.



No comments:
Post a Comment