How to Lock and Hide a Folder without Using Any Software in XP » BlogIsEverything.com
Best Web Hosting Offer - Looking for Web Hosting? | The Magic Tricks Blog - It's all about magic! | Affiliate Secrets Revealed!
May 26th, 2008

How to Lock and Hide a Folder without Using Any Software in XP


LockFolderKeeping some confidential files private means a lot to me. I can do this easily with several and file locking software and tools available out there in the Internet but with a price to pay.

So, here is an equally easy alternative, without any cost to bear – no software no tools! What you need is just a Notepad.

OK, here is how to setup a locking and hidden upon locked .

  1. Copy and paste the code listed below in blue (between Start copy and End copy) in Notepad.
  2. Change the “yourpasswordhere” with your own password.
  3. Save it as a batch file (with extension .bat), any name will do.
  4. Now you see a batch file. Double click to run the batch file to create a new named Locker by default. You can change the name by changing the line “md Locker” to “md yourfoldername”.
  5. Now, you can put all your files that you want to lock and hide want to hide into this Locker .
  6. To lock it, double click the batch file. Double click the batch file again will unlock it, prompting you for the password.

— Start copy —

cls
@ECHO OFF
title 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 Locker? (Y/N)
set/p “choice=>”
if %choice%==Y goto LOCK
if %choice%==y goto LOCK
if %choice%==n goto END
if %choice%==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 locked
goto End
:UNLOCK
echo Enter password to unlock the Locker:
set/p “pass=>”
if NOT %pass%==yourpasswordhere goto FAIL
attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” Locker
echo unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End

— End copy —

Here are some screenshots:

Lock folder

Lock folder

Note: I’ve not tested this on Vista, I’m not sure whether this works in Vista. If anyone of you going to give it a try in Vista, a feedback comment will be much appreciated.

So, hopefully you will find this useful and save your cash on locking tools. Enjoy!

*Update: Received feedback that this method is not working in Windows Vista.

post with your friends & family!

Digg it!
Reddit
Delicious
Sphinn it!
PoorAverageGoodGreatExcellent · 1 Ratings
Loading ... Loading ...
· Popularity: 5% · Views: 540 times

Related posts

Sign up to receive the latest updates from BlogIsEverything.com. You might as well subscribe to the RSS feed.

Comments are closed.

Subscribe & Bookmark

    Feed Subscription Bookmark and Share

Search BlogIsEverything.com

BlogIsEverything.com Updates

    Sign up to receive the latest updates from BlogIsEverything.com. You might as well subscribe to the RSS feed.

Categories

Top Rated Posts

Most Viewed Posts

Most Commented Posts

Sponsored Links

page counter