Hey friends many times it happens that we want to hide or protect our files and folders from anybody else. Then you try to download some softwares from internet for this, many of these softwares are trial version, and if its crack is available it contains a virus or trojan.
So I thought Why not create our own Folder locking Software?
I m here to help you, Just follow these Instructions :
1- Open Notepad.
2- Copy following CODE :
cls
@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 +r +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
cacls “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” /E /P Everyone:N
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p “pass=>”
if NOT %pass%==type your password here goto FAIL
attrib -h -r -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
cacls “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” /E /P Everyone:F
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
3- Write Your Password in red marked bold code area (Delete “type Your Password” (without quotes) and Enter Your Password).
cls
@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 +r +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
cacls “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” /E /P Everyone:N
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p “pass=>”
if NOT %pass%==type your password here goto FAIL
attrib -h -r -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
cacls “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” /E /P Everyone:F
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
3- Write Your Password in red marked bold code area (Delete “type Your Password” (without quotes) and Enter Your Password).
4- Save This file as a locker.bat
5- Open this locker.bat file
6- Enter your Password.
7- You can see that new “Locker” Folder is Created.
8- Put Your Important Data in this “Locker” Folder.
9- Reopen “locker.bat” File. It’s Show message – Are u want to save this(Y/N)
10- Enter Y.
11- You can see that Your Locker Folder is Vanished.
12- To Reopen File -> Open locker.bat File and Apply Your Password.
You can also use any “Bat to Exe Converter” converting software to give a good look to your FOLDER LOCK software.
Give it a try....... Enjoy...!!!
Your comments are always welcomed.
2 comments:
Hi, I tried as u said above.. its really interesting, but i think am nearly there... but the only problem is..i didnt see any lock in the folder. after saving the file as "locker.bat" i got one in WBF file type and second as folder. but in the folder i didnt see any lock or nor asked any password to open the folder. also i tried to open the WBF file.. first flash like CMD black screen then closed itslef, then again i tried to open the WBF file the only CMD screen open and written " are u sure you want to lock the folder (Y/N)" then i did as u said type Y and Enter. i did it but the CMD screen closed itself and nothing happen.. please help me if am missing something in that....thanks Mohun
above same prob i have faced
so pls clarify
thnks jafar
Post a Comment