Lock and Hide Folders
Posted by: lalitbadoga on: January 1, 2009
Though there are many software’s available to lock your private data like “folder lock”. But if you want to lock your folders without any additional software I have a trick for you.
- Open your notepad by typing “notepad” in run window.
- then copy the following code in notepad as given below
- 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
- Then in place type your password here of above code type the password you want to set.
- Now open file—-save as
- Then select the location you want to create your locker folder
- Then type name of file as “locker.bat”
- (note:-you should also use “” while typing name for file)
- Now go to location where you saved your locker
- Double click on it
- Then you will see that a new folder named locker is created.
- now move files you want to lock in locker folder
- When you want to lock your folder just double click on locker.bat created by notepad
- it will ask you to confirm to lock folder
- press y and then hit enter
- now see the effect
When you want to unlock the folder click on locker.bat. It will ask you for password. Type your password and hit enter and see the effect
- Note:
I have not created this tick but I am using it on my computer. So try it and tell me if there will be any problem.
Recent Comments