Mig33 Friends
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Lock Files and Folders

3 posters

Go down

Lock Files and Folders Empty Lock Files and Folders

Post by msilmy Wed Jun 04, 2008 5:24 am

How to Lock Files and Folders without any Software


Here is step-by-step guide to achieve that.

1. Copy the following text which contains the program code:-

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

2. Paste the above code in notepad or create a new text document by right clicking on your desktop and selecting New->Text Document.

3. Replace “type your password here” with your password in the code you just pasted on the notepad. DON’T FORGET THIS.
Lock Files and Folders F_pwdherem_39281b2


4. Save the above file as BATCH file (by extension .bat). Choose any filename but make sure that it ends with .bat
(Open My Computer. Goto Tools -> Folder Options -> View. Scroll down and UNCHECK Hide extensions for known file types. Now rename your file with .bat extension)

5. Now you can see a MS-DOS BATCH file you just created. See the picture below:-
Lock Files and Folders F_BatchFilem_1a429f1


6. Double click on it to create a new folder named “Locker“.

7. Now put all files and folders you want to protect in to this new folder “Locker“.

8. Double click that BATCH file again to lock the folder “Locker”. It will disappear as soon as it gets locked.

9. If you want to unlock that folder, double click the BATCH file again. You will be prompted for the password, enter the correct password and that folder “Locker” will then be appear which is easily accessible by you.

That’s it. You are done. You have just learnt how to protect your important files and folders without any software. Isn’t it amazing? What’s your take on this? Do you know any other technique?

Note:The safety of that BATCH file is also very important. So it’s better that you store it in some other directory or completely remove it. Then later on when you want to unblock your files and folder, just copy that batch file to same directory as your “Locker” folder and follow the above mentioned process.
msilmy
msilmy
V.I.P

Male
Number of posts : 1458
Age : 44
Location : Riyadh
mig33 username : msilmy
Registration date : 2007-10-01

http://www.mig33friends.com

Back to top Go down

Lock Files and Folders Empty Re: Lock Files and Folders

Post by luv.inspecta Wed Jun 04, 2008 5:32 am

very nice ... thnks for sharing mslimy ..
luv.inspecta
luv.inspecta
Legendary Member
Legendary Member

Male
Number of posts : 1642
Age : 38
Location : saudi arabia
mig33 username : luv.inspecta
Registration date : 2008-05-19

Back to top Go down

Lock Files and Folders Empty Re: Lock Files and Folders

Post by sajith Wed Jun 04, 2008 7:00 am

thats cool. thanks bro. keep it up
sajith
sajith
VIP member
VIP member

Male
Number of posts : 1555
Age : 35
Location : Sri Lanka
mig33 username : sajith.xp.pk
I\'m from : Lock Files and Folders Flag
Registration date : 2008-03-06

http://www.freenhost.co.cc

Back to top Go down

Lock Files and Folders Empty Re: Lock Files and Folders

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum