ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

Lock and Unlock Folder(s) : How to Lock and Unlock one or more Folder(s) Using Notepad?

Updated on June 5, 2011

Sometimes you need to apply restriction of some folders which are really personal for you. There are many softwares to protect your folders from unauthorized access. Those software really cost much. But there is an alternate solution which also is capable to provide restriction of your private folders. You can do this by using notepad. This page contains information to lock a folder using notepad and to unlock a folder using another notepad.

Steps to Lock and Unlock a Folder Using Notepad

Suppose, you have a personal folder named as MyFolder which has all the private information about you. So, you want to lock that folder. Moreover, you may also able to unlock that folder when you also necessary.

To lock the folder using a notepad follow the following steps:

1. Open notepad and copy the following code segment:

ren MyFolder MyFolder.{21EC2020-3AEA-1069-A2DD-08002B30309D}

2. Save the file as Lock.bat name. The extension of that file must be .bat extension.

3. Double click Lock.bat and the folder MyFolder will be locked.

To unlock the folder using a notepad follow the following steps:

1. Open notepad and copy the following code segment:

ren MyFolder.{21EC2020-3AEA-1069-A2DD-08002B30309D} MyFolder

2. Save the file as UnLockKey.bat name. The extension of that file must be .bat extension.

3. Double click UnLockKey.bat and the folder MyFolder will be unlocked.

Sometimes, you may mistake. That's why I send all files in a zip format to download. Here you will find all the lock and unlock a file and a folder to which you unlock. Open the .bat files in notepad and check whether your codes are OK or not. I think it really helps you.

Download the files for your experiment

You may use these codes any where. The only thing you have to remember, is to change the name of your folders to which you want to lock or unlock. The easiest way is to copy the two bat files and paste there where you want to lock or unlock any particular folder. Now open the two bat files with notepad, and change the folder name as the folder you want to lock or unlock. That's the easiest way to do.

By following the above steps, you can easily lock or unlock the necessary folders easily. Moreover, this technique can also be applied your pen drive locking process also.

© Written by rancidTaste

Comments

    0 of 8192 characters used
    Post Comment

    • profile image

      ankush 

      8 years ago

      this process of folder hide is not valid for windows7,,,pls check and send me some valid idea of folder hiding using notepad which are applicable for windows 7 also

    • profile image

      yukim 

      8 years ago

      ei wazup

    • profile image

      Nilay 

      9 years ago

      I love u mannnnnnnnnnn

      u saved my life................thanku very very very very very very very much............

    • profile image

      sensiguard 

      9 years ago

      Thanks for sharing with us ..and the comments are helpful..thanks and keep posting..good luck :D

    • profile image

      sensiguard 

      9 years ago

      Thanks for sharing with us ..and the comments are helpful..thanks and keep posting..good luck :D

    • darkside profile image

      Glen 

      9 years ago from Australia

      I did a search for lock unlock notepad folder and the second result could be the Vista solution. And yours came in at number 1 result by the way :D

    • rancidTaste profile imageAUTHOR

      rancidTaste 

      9 years ago

      it's fully workable in windows XP... i use it in this way. i think there must be some solution for vista. i will try for that. but the main problem is that i need to install vista. [i don't like vista (i don't know the reason). i only like XP and ubuntu].

      Anyway, i will try myself to find such a solution for windows vista.

    • darkside profile image

      Glen 

      9 years ago from Australia

      Okay, it mustn't work in Vista then. :( Oh well, I had been looking for something like this for... 8 years! :D

      At least I know now that it can be done, even if not on the latest Windows product.

    • rancidTaste profile imageAUTHOR

      rancidTaste 

      9 years ago

      Darkside, I do all the steps in Windows XP and it's totally working under Windows XP. I don't use Vista. Most probably, the Operating system (Vista) does not support that.

      [For me, I'm using Toshiba notebook and Windows XP Service Pack 3. The process is totally working.]

    • darkside profile image

      Glen 

      9 years ago from Australia

      Downloaded it, unzipped it (I have winRAR) and then double clicked the lock.bat, and then tried opening the folder. And it opened.

      I'm using a Dell notebook with Windows Vista on it.

    • rancidTaste profile imageAUTHOR

      rancidTaste 

      9 years ago

      darkside, I think the code is ok. Would you please download the zip files and see the code. I just add the download link. You can download that and follow the instructions. I think it will be working. If you face problem, tell me. I will try to solve. I again give you the code download link: http://www.box.net/shared/svzybozgq0 [please follow the instruction which I mentioned after the steps]

    • darkside profile image

      Glen 

      9 years ago from Australia

      I tried it. Followed the instructions by the letter. By double clicking the Lock.bat file it renamed the folder. But I could still open the folder. Did I miss something?

    working

    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, hubpages.com uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at: https://hubpages.com/privacy-policy#gdpr

    Show Details
    Necessary
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the googleapis.com or gstatic.com domains, for performance and efficiency reasons. (Privacy Policy)
    Features
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Marketing
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Statistics
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)