LOCK A FOLDER IN WINDOWS WITHOUT USING ANY ADDITIONAL SOFTWARE!!!
Step 1: Open Notepad and paste the following code in it...
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%==YOUR_PASSWORD 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
Step 2: Replace YOUR_PASSWORD text in the above code by a password as per your wish.
Step 3: Save it as lock.bat in any location.
► You can use any name but it should have .bat extension.
► Make sure that the "All Files" option is selected in the "Save as type" is drop-down list.
Step 4: Double-click on your batch file (lock.bat) to open it.
→ When you run the program for the first time, it will create a folder named "Private" in the same location.
► This is where you can store the files that you want to hide.
Step 5: TO LOCK THE FOLDER:
After adding the files, Double-click on your batch file (lock.bat).
→ It will ask "Are you sure you want to lock the folder(Y/N)"
→ Press Y and hit Enter to lock and hide the Private folder.
Step 6: TO UNLOCK THE FOLDER:
Again Double-click on your batch file (lock.bat).
→Enter your password and hit Enter to unlock and unhide the Private folder.
►This method does NOT provide ultimate security.
HOW TO BYPASS THIS TRICK?
Goto Folder Options → View and uncheck "Hide protected operating system files" option.
Step 1: Open Notepad and paste the following code in it...
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%==YOUR_PASSWORD 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
Step 2: Replace YOUR_PASSWORD text in the above code by a password as per your wish.
Step 3: Save it as lock.bat in any location.
► You can use any name but it should have .bat extension.
► Make sure that the "All Files" option is selected in the "Save as type" is drop-down list.
Step 4: Double-click on your batch file (lock.bat) to open it.
→ When you run the program for the first time, it will create a folder named "Private" in the same location.
► This is where you can store the files that you want to hide.
Step 5: TO LOCK THE FOLDER:
After adding the files, Double-click on your batch file (lock.bat).
→ It will ask "Are you sure you want to lock the folder(Y/N)"
→ Press Y and hit Enter to lock and hide the Private folder.
Step 6: TO UNLOCK THE FOLDER:
Again Double-click on your batch file (lock.bat).
→Enter your password and hit Enter to unlock and unhide the Private folder.
►This method does NOT provide ultimate security.
HOW TO BYPASS THIS TRICK?
Goto Folder Options → View and uncheck "Hide protected operating system files" option.
0 comments:
Post a Comment