I am here to teach you that how can you create your own folder lock through CMD.
It's easy and secure than most of the free folder lockers.
1. First of all, create a new text file.
2. Paste the following code into the text document.
3. Type your password by editing the "YourPasswordHere" word with your own password.
4.save that text file as AnyName.bat.
5.Open that .bat (batch) file.You will notice that a folder named "Locked" is created.
6. Copy all of the files and folders that you want to keep private in the "Locked" Named folder.
7. Open that .bat (batch) file you created and the file will ask you if you want to lock the "Locked" Named folder. Type Y then press enter and your folder will be locked and vanish.
8. If you want your files to be unlocked, open that batch file again and it will ask you for a password.`Type your password there and press enter. The folder will be unlocked and appeared.
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%==YourPasswordHere 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
No comments:
Post a Comment