How To Lock Folder in Windows 7 Step by Step.
In office, sharing computer is normal situation. But there some files and documents must be kept confidential. So, do your personal files and documents in the computer is safe? But there is many software that you can download and use.
In my tutorial I will share with you the scripts how to lock folder in windows 7 step by step without software.
1. Go to drive C or any drive you want. Create one folder in drive with any name you want.
2. Open the folder and create one notepad file as below.
3. Copy scripts below start from @ECHO OFF to :End to notepad
@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%== CREATE YOUR PASSWORD HERE 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
4. Create your own password at 'CREATE YOUR PASSWORD HERE'. For example, the password you was create is 12345.
The scripts is like this if NOT %pass%== 12345 goto FAIL
5. Save as the notepad with name locker.bat. Refer picture below.
6. Go back to the examplefolder you was create before. You will see the file with name locker.bat. Double click on it. The private folder will generated automatically.
7. So. Now put the file and folder that you want to protect into a private folder.
8. To lock and hide the private folder, just double click on file locker.bat. The command prompt will popup like below. Just click 'y' to hide and lock the folder or file.
9. If you want to UNHIDE / UNLOCK just click on file locker.bat and enter the password you create before.
For detail instruction you can watch the video How To Lock Folder in Windows 7 Step by Step here.
NOTE : You can do it for windows 8







0 Comments