How to Lock Folder Without Any Software
Tuesday, 7 August 2012 -
How-To,softwares
No comments
There are lot of ways to lock folders on computer. But in this article we going to showing you, how to lock folder without any software. it's very easy to protect your valuable folders and you can enhance your folder secure. In the earlier we mentioned, how to protect USB drive, that method is using USB Secure software. But in this tutorial no need to use any software. Just adding batch code in notepad.
How To Lock Folder Using Notepad
1. Open Notepad file.
2. Copy the below code and Paste it in notepad.
2. Copy the below code and Paste it in notepad.
cls
:End
@ECHO OFF
title Folder Locker
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%==123456789 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
@ECHO OFF
title Folder Locker
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%==123456789 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
In the above batch code we added password is 123456789, and you can change that password.
3. Now save the notepad file as yourname.bat , (see below)
4. Now a batch file will created in where you saved location.
7. Once again open batch file to lock the stored file in folder. Now press Y and press Enter.3. Now save the notepad file as yourname.bat , (see below)
4. Now a batch file will created in where you saved location.
5. Open that batch file, at the same time you will see Locker folder,
6. Now store your personal files like pictures, videos, documents, etc... 8. Now your folder will be invisible and protected. but batch file be there.
When you want to unlock the folder, then again open batch file and enter your password
Video Tutorial:
0 comments:
Post a Comment