steps:
1. open a drive where you want to create the folder. for eg D drive
2. and open a text document here.
3.now paste the following code on the text file and save as abc.bat
cls
@ECHO OFF
title Folder doc
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST doc 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 doc "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%==
change_your_password goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" doc
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md doc
echo doc created successfully
goto End
:End
PAUSE
4. type your password in place of
change_your_password in the
abc file.
5. now in d drive there exist a batch file named as
abc
6. double click
abc file
7. now a folder created named as
doc
8. copy all the files or documents which you wants to secure in the
doc folder.
9.now again double click the
abc file,it ask for Are you sure you want to lock the folder(Y/N)
then type yes for y and no for n.
10. if you type y your file doc now disappear from the
d drive.
11. if you want to see the doc file double click the
abc file,now it ask for password,now enter your password which you placed in place of
change_your_password in the
abc file.
12.if password matched you can see your
doc file.
13.to again change the password right click on the
abc file and select
edit and change the password.
enjoy the magic.