How To Locking files without software



Locking files without software


1. Paste the code in notepad.
2. Save it as batch file(with extension .bat).Any name will do.
3. Now you see a batch file. Double click it to create a folder locker.
4. A new folder named Locker would be formed at the same location.
5. Now brings all the files you want to hide in the locker folder.
6. Now double click the batch file to lock the folder namely Locker.
7. If you want to unlock your files,double click the batch file again and you would 8. be prompted for password.Enter the password and enjoy access to the folder.

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 +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%==type your password here 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

Share this

Related Posts

5 comments

comments
Anonymous
30.4.11 delete

I have tried to lock folder, The Folder only hide. But no there is no opportunity to set password. Plz help...

Reply
avatar
26.6.11 delete

Yes,I want to know about set password because when I double click file .bat and I type number always Enable folder...please help me to set password

Reply
avatar
21.8.11 delete

if NOT %pass%==type your password here goto FAIL

Replace "type your password here" with the password you want to use. ;)

Reply
avatar
5.10.11 delete

i did that n a cmd promt box oppened it said press y or n i did that n it was hidden when i pressed de batch bile again n for pass it typedsmthing else n it worked any one can oppen it its use less

Reply
avatar
Anonymous
11.3.12 delete

This is awesome man!! Could you please tell me what language you have used to write the code????

Reply
avatar
There was an error in this gadget