Copy and paste the following code in notepad
cls
@echo off
title Folder Locker
IF EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" GOTO UNLOCK
IF NOT EXIST Locker GOTO MDLOCKER
echo Folder Created.
: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 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 the Folder :
set/p "pass="
IF NOT %pass% == YourPasswordHere GOTO FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" LOCK
echo Folder Unlocked Successfully.
GOTO END
:FAIL
echo Invalid Password!
GOTO END
:MDLOCKER
md Locker
echo Folder created.
GOTO END
:END
PAUSE
In the above code change YourPasswordHere with your own password
Save the file with .bat extension.
Another simple Way
Step 1: First you have to make your folders totally invisible, to do this follow these steps -
- Create a new folder with any name
- Rename the folder with a space (U have to hold ALT key and type 0160).
- Now u have created a folder without a name or the name is only space.
- Now Right click on the folder >> properties >> customize.
- Now click on change icon.
- Scroll down and you should find some empty spaces.
- Click on any one of them and Click ok
- Thats it, now your folder has become invisible .
Step 2: Now you have to follow these steps -
- Suppose you have a folder named abcd in D:\abcd.
- In the same drive next to the folder create a new notepad file with the exact statement ren abcd abcd.{21EC2020-3AEA-1069-A2DD-08002B30309D}
- Now save this text file as loc.bat
- Create another notepad file and type ren abcd.{21EC2020-3AEA-1069-A2DD-08002B30309D} abcd
- Save this as key.bat
- Now there are two batch files . Double click loc.bat and your folder will change into Control Panel and its contents cannot be viewed .
- To open the folder double click key.bat and you get back your original folder .
- For more safety keep the key.bat in another location .Only for unlocking copy paste to the original location and double click .
Now if you combine the Step 2 with Step 1 it will be impossible for anyone else to access it except you.
1 comments:
macha super
Post a Comment