I hope you will like this tutorial..!!
This is the best way of locking any folder. This tutorial is not mine, my friend told me this through email and i thought to share it with you all. I really don't know the source but it's very good.
Copy the 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 +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
* Now paste it in notepad.
* Change the "type your password here" with your password (Marked as bold in the above posted matter).
* Save it as batch file(with extension .bat).Any name will do.
* Now you see a batch file. Double click it to create a folder locker.
* A new folder named Locker would be formed at the same location.
* Now brings all the files you want to hide in the locker folder.
* Now double click the batch file to lock the folder namely Locker.
* If you want to unlock your files,double click the batch file again and you would be prompted for password.Enter the password and enjoy access to the folder.
on November 4, 2007 at 7:39 AM
hi ... ive a mobilephone blog with quality posts...
can we exchange links??
i have added your blog at my favourite blogs (seen at the side bar..) can you add mine too??
my blog - my-cellphone-reviews.blogspot.com
leave a comment on my blog after adding...
on November 7, 2007 at 7:34 AM
So your password is stored IN THE CLEAR in that script. To unlock the folder, all you have to do is read the script, copy the password, run the script and paste the password.
Clever.
on November 7, 2007 at 7:47 AM
I'm not overly familiar with that scripting language but it appears to be setting Windows attributes on the "Locker" folder.
The password is not actually required to unlock the folder, so you could just copy the important part of the ":UNLOCK" part of the script and run that instead.
The important part is
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
on May 12, 2008 at 11:51 PM
I dont know much about this stuff.. seemed great.. everything works except that the folder disappeared after I locked it and double clicking the batch doesnt do anything! The box pops up for a second and then goes back... the locked folder doesnt appear anywhere.
on June 7, 2008 at 4:57 PM
same problem as anonymous posted above,,,,folder disappeared...ot the below message
File not found - Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}
The system cannot find the file specified.
Folder Unlocked successfully
D:\>
on June 7, 2008 at 7:08 PM
Found answer to the lost folder....the folder is actually hidden underneath the drive as system file....follow the below steps and you can get your data back
Step 1: From My Computer goto Menu>Tools>Folder Options
Step 2: Click on View tab.
Step 3: Check th radio button which says “Show hidden files and folders”. Also, uncheck the checkbox which says “Hide protected operating system files(recomended)”.
Step 4: Press apply ok.
Now you can see the “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” folder with the control panel icon.
Double click it. You will see the control panel window.
Now
Step 5: Rename the folder. Give any name.
That’s it. You have unlocked the folder. The icon of the folder will be the same as normal folder.
Now you can access the folder and its contents.
on July 7, 2008 at 4:54 AM
Seems like a nice trick but it isnt. You can hide the password by converting the bat file to .exe easily but that cannot stop anybody peek into your folders. This script does noting more than renaming and hiding the folder. If you go to folder options and enable "show hidden files" & disable "hide protected system files" you will see your folder is there and accessable without password. Or some programs like winrar that disregard hidden folders will make your folders visible and accessable.
on August 7, 2008 at 12:46 AM
Thx for sharing the code, it works fine. Before reading this, I used to encrypt folder using KaKa Folder Protector. It also works fine for me, and completely compatible with Vista.
Post a Comment