Monday, March 18, 2019

Apply a password to a folder without Software

We want to keep secret things from others. There are many ways to do that. Today, let’s look at a password for a folder without software. It’s very easy. Follow the steps below.

1.       First. Open a notepad.

2.       Then replace the lower codes with a copy instead of the words “Test@123”.  

cls
@ECHO OFF
title Folder Private
if EXIST "HTG Locker" 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 "HTG Locker"
attrib +h +s "HTG Locker"
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== Test@123 goto FAIL
attrib -h -s "HTG Locker"
ren "HTG Locker" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End

2.       Then save as and select all files and make the name Locker.bat.

3.       Now open the Locker.bat file. Then a private folder will open. In the folder, you need to lock in to copy the files.

4.       Then, run Locker.bat file again.
 
5.       Then it says “Are you sure want to lock the folder <Y / N>”. When you type “Y” and type it, the Private folder will not appear.

6.       Run Locker.bat if you want to open the folder. Then, give the passwords. Only if pass the password you can open folder or do not show it.