Welcome. Today I am sharing another excellent trick with you through which you will be able to protect your data without using any folder lock software. Of course folder lock software is a best option but mostly folder lock are of trial version and we have to pay to get full version. So it is better to create your own folder lock in few steps and save your money.In This folder lock we will use batch file programming. And it works on every windows.
Follow the following steps.
- Open your notepad.
- Copy the following code into it.
cls
@ECHO OFF
title Protect Your Data.
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto Unlock
if Not EXIST Bunker goto CHBunker
:Confirm
echo Do you want to protect this folder? (yes/no)
set/p "answer=>"
if %answer%==Yes goto LOCK
if %answer%==yes goto LOCK
if %answer%==no goto END
if %answer%==No goto END
echo Invalid, Please enter correct answer.
goto Confirm
:Lock
ren Bunker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:Unlock
echo Please enter your password to unlock your protected folder.
set/p "password=>"
if NOT %password%== 12345 goto Fail
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Bunker
echo Your protected folder unlocked successfully.
goto End
:Fail
echo Your Have Entered Incorrect Password.
goto end
:CHBunker
md Bunker
echo Bunker created successfully
goto End
:End
- Save the notepad file as name.bat
- You can change name but .bat is must, if you change it than you will be fail.
- Double click on name.bat and a new folder will be created with name Bunker.
- Copy all your data you want to protect and paste it in Bunker.
- Double click on name.bat and when command prompt appears type Yes and press enter.
- Now Bunker will be automatically hidden from you view.
- To access that Bunker double click on name.bat
- It will ask for password enter your password. (Default password is 12345)
- Now if you want to change Default password replace 12345 with your own password in the above code
- Enjoy
Precaution.
If someone open name.bat file with notepad than he can see your password. In windows 8 when we right click on name.bat file, there is no option of "open with". But there may be "Open with" option in windows XP and windows 7. So to make your data more secure place name.bat at some hidden place, which you only know. When ever you require your data go to name.bat and double click on it and get all your data.
I hope you will enjoy this beautiful trick. If you like it then share please. Give your feedback in comments.
No comments:
Post a Comment