PDA

View Full Version : Lock any folder without any software



starforce
25.06.09, 17:05
Lock and hide files without using software apps

Note- Its different from Invisble as well hidden folder....here you need to have a password with which you can open your folder.

Here is the 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 +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo stuff by satish
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==TYPE UR 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

Instructions:

1) Copy the code above in a note pad and give it a name - name.bat (that is with the extension of .bat).
Replace name with anything you want.
Save the "*.bat" file where you want your locked (and not visible) folder on your pc.

Note-- In the code where it says "TYPE UR PASSWORD HERE" - type your desired password (no quotes ").
Your password can only contain letters and numerals - e.g. 0-9 and A-Z. Can use Caps but No symbols

2) A batch file will be created where you have saved.
Now double click on it, A folder with the name locker will be created in the same folder
where the batch file is saved.

3) Now add the files you want to be locked in that folder.

4) Double click on the batch file.
It will ask about locking the folder.
Type y(yes).
The folder will be locked and hidden.

5) To unlock, double-click on batch file again and enter the password in the new window opened.

6) The password can be changed by any body if they find this ".bat" file!
So, make sure that you the name is not so obvious and put this in some place not so obvious.
Not very many people will be looking for a .bat file.

Tested By Me Working 100%
regards starforce

anon
25.06.09, 18:46
The good old trick of using a CLSID as an extension, turning any folder into a Control Panel, Recycle Bin or My Computer. :top:

However, as far as I know you can still choose "Explore" from the context menu and see what's inside. :frown:

starforce
26.06.09, 00:06
@anon
i well test it for
xplore" from the context menu and see what's inside:wink:
regards
starforce

Dynamic
26.06.09, 07:13
So this confirms that you can browse the contents? Even when locked?

anon
26.06.09, 15:23
Post #2? Yes. :frown: