The below code in MS DOS will help you to lock folder/files without using any software. Though it can be easily cracked, will help you to lock to beginners of windows.
Copy this below code to a notepad and save it as Locker.bat Replace this line "if NOT %pass%==password goto FAIL" with required password of your own. Double click the Locker.bat file, this will create a folder calling "locker" on the current folder. Place the file that to be locked on the newly created "locker" folder. Now, again double click the Locker.bat file. This will make the locker folder to hide thereby locking the files inside them. To Unlock the files, double click the Locker.bat file and give the correct 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 +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%==password 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
Hope this would help you to lock folder/files without using any software in Windows
This really works! \m/(*_*)\m/
it does works. however, i do not remember the password. how to retrieve?
hey dude its good but if any one open the locker.bat file in edit mode then he can see my password and he also can change the password
hey its good n ron i have got d solution to ur idea
I really like it
You don't need to worry about the password, if you forget or the .bat file is lost. Just do these simple steps to regain your files... Step 1: Goto the drive where you have made the folder hidden for example: i used d drive, so gotot d:/ Step 2: In the menu bar, goto tools folder options. Step3: In view tab, choose show hidden files or folders and uncheck the hide protected operating system files (recommended). Step4: You will get all the hidden files. There you can find a control pannel icon with the name Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}, just rename it what ever name you want and you will get your files back. Try and Checkit out!
i forgot the password. with out changing the password in the batch file . and it in asking ENTER PASSWORD TO UNLOCK THE FOLDER
good this work good
How to retrieve the password if i lost the bat.file and i want to unlock the folder. I already followed the step below and got show the icon for control panel. My question is How to retrieve the password if i lost the bat.file? Step 1: Goto the drive where you have made the folder hidden for example: i used d drive, so gotot d:/ Step 2: In the menu bar, goto tools folder options. Step3: In view tab, choose show hidden files or folders and uncheck the hide protected operating system files (recommended). Step4: You will get all the hidden files. There you can find a control pannel icon with the name Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}, just rename it what ever name you want and you will get your files back. Thanks
May i know what is ren lockfile. what purpose of using this?
thnks...i appreciate ur help...^-^..bt could any 1 tell me wat .bat is n how can i noe more tricks like dis 1?...thnks in adv 4 ur answers...
my pc accepts wrong password also...
there is the problem with folder if the someone can delet control pannel folder then..................?
Hi... when I open the locker.bat and enter the password, nothing happens, I cant see the folder. I made a Winrar archive and saw a folder named "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}', i tried to extract it but it said 'No archives found', when I open this folder it has nothing in it, however I had locked many movies in it. Please help me guyz... :(
use the cacls command it actually locks users out of it find out how to use it before using it.also locks programs.