Friday, April 20, 2012

Have you ever wondered if it is possible to Lock Folder using Notepad?

Well yes it is possible to Lock Folder Without Any Software. This method works fine in Xp/Vista and hopefully upper versions of windows.

Please don't use this method if you are unsure what you are doing, I am not responsible for any damage caused by use of this, though it won't occur if you follow my steps correctly.

Here we start:

Open Notepad from your Start -> All Programs -> Accessories -> Notepad



Step 1. Copy and Paste the below code in Notepad and Save it as FolderLock.bat

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 save this notepad file as FolderLock.bat





Step 2 :- Now Double Click that new Batch file named FolderLock and it will make a new folder named Locker in the same location:

[Image: folderlock2.jpg]


Now put the Data Inside the folder Locker and again Double Click the Batch file to Lock it, this will give you a prompt, just Type y and press Enter: , File get locked 

Now keep the Batch File named FolderLock.bat in a different place like your USB Pen Drive so that only you can access the Folder you have locked.



To Unlock the Folder just double click the Batch file again and type y and press Enter.

Windows keys for XP ,7 , and vist

===== Microsoft Windows XP Professional =====
MMCCB-GVXVK-362Q6-GMB6C-J7HC3
VPR7K-GPY8G-CPRTH-DT3VK-R84M3
JHJBY-RFR88-8F8G4-TPG8M-4Q67Y
V2C47-MK7JD-3R89F-D2KXW-VPK3J
76DMY-V3TT4-3PDP7-GDM4Y-PWCG6
CFDYK-FFHH7-QW3HM-JGRQX-KM77T
WCBG6-48773-B4BYX-73KJP-KM3K3
VRDDV-8FF62-J6MFF-W628V-TR2CT
MVPFR-6D79Y-2VPP2-CP9TX-3T48Y
CGJ2M-CFTXY-W4RBJ-BWTGB-VH2CB
THMPV-77D6F-94376-8HGKG-VRDRQ
F7JWY-M24J9-M6HG9-7GP7M-6CPW8
B2HDG-BXG4M-PKY3X-2FKC7-XBWFD
TTPXP-MR68K-6TG2C-T7TPB-X47V3
CB9YB-Q73J8-RKPMH-M2WFT-P4WQJ
KG27H-JV9M6-2CXKV-GMP22-HF2BQ
H49F9-8RTVG-MTCVH-G2MFK-C47C8
XP8BF-F8HPF-PY6BX-K24PJ-TWT6M
CP4C8-WRJR8-T4YDB-PB6DG-JPKMJ
B3P7V-Q2WTH-CRK4R-YHJRF-39H4M
72HHJ-8YR4B-2XT62-TJGMV-JBP68
CP4C8-WRJR8-T4YDB-PB6DG-JPKMJ
D2VY9-RMHY3-2KQ8P-MRKPD-Q7CPW
RCBF6-6KDMK-GD6GR-K6DP3-4C8MT
Q3DHY-KTPTW-2CH7X-8X9M3-7WW9J
72HHJ-8YR4B-2XT62-TJGMV-JBP68
KTTJ8-QT33J-92TK9-2Q2RT-CFTT6
MYHVT-WQ49M-QRPVF-V86FC-P3R8Y
FTRJJ-CKFR6-QKDT7-K83KT-V4PCG

===== Microsoft Windows XP Home Edition =====
C76FF-X962B-F6K2V-6XJMP-PVPVM
MK48G-CG8VJ-BRVBB-38MQ9-3PMFT
HPM47-FF9MV-639VQ-4QGQ6-9JJV3
PTQFW-DGY9V-CDVGC-9FVMV-B4P9Y
________________________________________________________
Windows Vista 
________________________________________________________
===== Microsoft® Windows Vista™ Home Premium =====
4GPTT-6RYC4-F4GJK-KG77H-B9HD2
2R6WF-KYF88-27HYQ-XTKW2-WQD8Q
2TYBW-XKCQM-XY9X3-JDXYP-6CJ97
2R6WF-KYF88-27HYQ-XTKW2-WQD8Q
6DX2X-QR7XB-3RBY2-BGQ2R-DR9M6
6DG3Y-99KMR-JQMWD-2QJRJ-RJ34F
77BYY-2X28H-XV2VX-HWG6R-TD2QT
6JWV3-843DD-4GV68-6D8JB-G6MF9

===== Microsoft® Windows Vista™ Home Basic =====
3YMR2-WMV49-4WD8X-M9WM7-CH4CG
4DV48-MFJR8-VRW92-3VTYM-HBTPB
2VX48-BVXT6-GD2PK-BD3R2-44MV3

===== Microsoft® Windows Vista™ Business =====
368Y7-49YMQ-VRCTY-3V3RH-WRMG7

===== Microsoft® Windows Vista™ Ultimate =====
2QBP3-289MF-9364X-37XGX-24W6P
________________________________________________________
Windows 7 
________________________________________________________
===== Microsoft Windows 7 Édition Familiale Premium =====
H4JWX-WHKWT-VGV87-C7XPK-CGKHQ

===== Microsoft Windows 7 Édition Intégrale =====
22TKD-F8XX6-YG69F-9M66D-PMJBM

===== Microsoft Windows 7 Home Premium =====
6RBBT-F8VPQ-QCPVQ-KHRB8-RMV82
4FG99-BC3HD-73CQT-WMF7J-3Q6C9
6B88K-KCCWY-4F8HK-M4P73-W8DQG
VQB3X-Q3KP8-WJ2H8-R6B6D-7QJB7
6B88K-KCCWY-4F8HK-M4P73-W8DQG

===== Microsoft Windows 7 Ultimate =====
342DG-6YJR8-X92GV-V7DCV-P4K27
FJGCP-4DFJD-GJY49-VJBQ7-HYRR2
6K2KY-BFH24-PJW6W-9GK29-TMPWP
D4F6K-QK3RD-TMVMJ-BBMRX-3MBMV
MHFPT-8C8M2-V9488-FGM44-2C9T3
22TKD-F8XX6-YG69F-9M66D-PMJBM

===== Microsoft Windows 7 Starter =====
2VK6K-VRCTY-7CBJ6-P32JW-27PXY
RDJXR-3M32B-FJT32-QMPGB-GCFF6
273P4-GQ8V6-97YYM-9YTHF-DC2VP
PV9BD-YBRX6-CTMG6-CCMJY-X8XG7

===== Microsoft Windows 7 Home Basic =====
MB4HF-2Q8V3-W88WR-K7287-2H4CP