10/23/2008

How to lock a folder in Windows XP without any special software ?

Want to lock a folder so as to prevent others using your computer from viewing its contents ? Normally we use third party software to achieve this . I found a good way to lock a folder in Windows XP without using any third party software .

  • Open Notepad in your PC by typing " Notepad " in run prompt .
  • Copy the following Code and paste it in notepad.

cls
@ECHO OFF
title Folder Technade
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Technade 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 Technade "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%==technade123 HERE goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Technade
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Technade
echo Technade created successfully
goto End
:End

  • Save the notepad and change the extension of the file from ".txt" to ".bat" .
  • Now you have created a batch file . You can even customise the batch file by following the below two points.
  • Replace Technade which is in bold letter with the name of the locked folder you want to create ( Optional ) .
  • You can change the password also by replacing " technade123 " in the above code with your new password ( Optional ).
  • Now place the batch file in the location where you want to create your password protected folder .
  • Run the batch file by double clicking on it. This will create a folder named "technade" in the same location as the batch file.
  • You can now open the folder and place the files inside .
  • After placing the files , run the batch file again . It will ask you whether you want to lock the folder . Press' y' and hit enter .
  • The folder will become invisible . To reopen the folder , run the batch file again . You will be asked for a password .
  • Enter the password and hit Enter . You can view the contents of your locked folder .
Note : After locking the folder , don't keep it in the same location as anyone can open the batch file and see your password . Keep it in someother location , and whenever you want to open it , Place it back in the location of locked password and run it .

Thanks to Digital Quest.

For more techtips , Subscribe here or click here to get updates via email .

17 comments:

hey u are writing some script and creating software here

good work......... its working

the HERE after password should be remove. otherwise the folder appear again with any password entered.

Most people who order Generic Viagra online do it for some special reason or the other; either they don't have the guts to walk up the counter with a prescription to buy cheap Viagra or there are no regular pharmacies nearby. Let's keep aside the case of the illegal Viagra buyers, who buy Viagra sale without prescriptions for reasons best known to them; I have no worries about them.

thanx man.... it really works!!!!

Condom works but itz really nice to work without condom.

thnx a lot.....it is really nice one!

thanks a lot its very good thing u have show us

It's genuine buddy u r genius

Very Nice one Indeed, Shadrack Rav5...

arey waste fellow created this..i had done exactly and everything is fine but even if we type wrong password also the folder is visible.. ..!.

Yes if do some modification its fine
id did it and i am getting good work
he did 95% think u can get ...

Thanks & Regards
Uthaya

Trên thế giới có nhiều loại đông trùng hạ thảo, có loại đông trùng hạ thảo rất quý như đông trùng hạ thảo tây tạng của Việt Nam ở nước chúng ta. Đông trùng hạ thảo là loại có dưỡng chất tốt nhất.
cửa hàng đông trùng hạ thảo hàn quốc quận 4
cửa hàng đông trùng hạ thảo hàn quốc quận 5
cửa hàng đông trùng hạ thảo hàn quốc quận 6

Trên thế giới có nhiều loại đông trùng hạ thảo, có loại đông trùng hạ thảo rất quý như đông trùng hạ thảo tây tạng của Việt Nam ở nước chúng ta. Đông trùng hạ thảo là loại có dưỡng chất tốt nhất.
cửa hàng đông trùng hạ thảo hàn quốc quận 4
cửa hàng đông trùng hạ thảo hàn quốc quận 5
cửa hàng đông trùng hạ thảo hàn quốc quận 6

hồng sâm làm đẹp là một trong những loại thảo dược tự nhiên, có mặt ở rất nhiều quốc gia trên thế giới như Nhật Bản, Hàn Quốc, Hoa Kì... Trong các loại tác dụng làm đẹp của hồng sâm kể trên thì nhân sâm hàn quốc luôn được hàng triệu người trên khắp thế giới săn lùng và tìm kiếm bởi những giá trị tuyệt vời. Từ xưa đến nay những công dụng của loại nhân sâm này vẫn được mọi người lưu truyền và ứng dụng vào trong đời sống đặc biệt là chăm sóc sức khỏe của con người. Củ cách làm đẹp với nhân sâm chính là nhân sâm Hàn Quốc ở dạng tươi chưa qua sơ chế thành các sản phẩm. Củ nhân sâm Hàn Quốc có những vai trò và tác dụng vô cùng to lớn đối với con người.

hồng sâm làm đẹp là một trong những loại thảo dược tự nhiên, có mặt ở rất nhiều quốc gia trên thế giới như Nhật Bản, Hàn Quốc, Hoa Kì... Trong các loại tác dụng làm đẹp của hồng sâm kể trên thì nhân sâm hàn quốc luôn được hàng triệu người trên khắp thế giới săn lùng và tìm kiếm bởi những giá trị tuyệt vời. Từ xưa đến nay những công dụng của loại nhân sâm này vẫn được mọi người lưu truyền và ứng dụng vào trong đời sống đặc biệt là chăm sóc sức khỏe của con người. Củ cách làm đẹp với nhân sâm chính là nhân sâm Hàn Quốc ở dạng tươi chưa qua sơ chế thành các sản phẩm. Củ nhân sâm Hàn Quốc có những vai trò và tác dụng vô cùng to lớn đối với con người.

Post a Comment