• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Lock any Folder with password

By Abhishek Ghosh May 14, 2011 8:02 am Updated on May 14, 2011

Lock any Folder with password

Advertisement

This tutorial shows how to Lock and hide a Folder with a password without using any Software.

 

Steps:

 

1. make a new folder ( name it as you like ):

Advertisement

---

2. Inside this folder make a ( TXT ) file & copy inside it this (the entire thing written):

 

Copy and paste this code inside the New Text Document:

Quote:
Quote: cls
@ECHO OFF
title Folder Private
if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
echo Are you sure you 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 Private “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%== password here goto FAIL
attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End

3. After u copy the Commanding go to the bold words (or try using shortcut- CTRL+F and type password to locate the line) u will find this word : password here (Change it with any password u like.) is :

if NOT %pass%== example1234 goto FAIL

//so your password here becomes example1234 .//

4. After that go to Save as… & name this file as “locker.bat “. Be sure to change the “Save as type” from “text” to “All Files” :

5. Now back to the folder & u will find a ( LOCKER ) commanding (locker.bat). Double Click on it & u will find a new folder (Private ):

6. Now copy what u want in this “private Folder” & after that come out of the folder, and Double click on locker again. It will open and ask if you want to lock your folder? Y/N ?

7. Type Y. your private folder will disappear.

8. If you want to UNLOCK your folder ,go to (locker) & type your pass and you will see your private folder.

9. Enter the password and hit “Enter”.

Note:

It not only hides the folder, but hide all files… and try opening it without entering password, it will take you to the control panel.

Also, if u want to store files on your Pen-Drive, u can use this script. No Software Required.

In case u delete your Locker file (just in case), then u can make a new one (but with the same password) and open it from that.
Alternatively, u can keep this locker file somewhere else, and when u want to open ur folder, only then bring it back to that place .

Signature

This Article Has Been Shared 361 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Lock any Folder with password

  • Hide User Accounts from the Welcome Screen in Windows 7

    This is small easy tutorial to show how to Hide User Accounts from the Welcome Screen in Microsoft Windows 7

  • Finding the ideal settings for playing Music and Video files in Windows 7

    Finding out the right settings to hear the fantastic music creations is not that easy. Let us enter the world of audiophiles to get the ideal settings for playing Music and Video files in Windows 7.

  • Create a backup disk in Windows 7 without using any software

    There are paid software available to take full image backup in Windows 7. However, you can take full backup of your Windows 7 PC in the same manner without using any software.

  • How to ensure your computer’s safety against virus

    The viruses are a threat to any computer across the world. Thus, to reduce our risk of virus infection in Windows operating system based computer, we must not relax our vigilance, we must take steps to ensure that our computers are well protected.

  • Restore Windows Aurora Screensaver with all settings in Windows 7

    Aurora screensaver is by default absent in Windows 7, here is a complete tutorial on how to restore Windows Aurora Screensaver with all settings in Windows 7.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Comments

  1. AvatarChamu says

    December 25, 2010 at 11:54 pm

    Added thecustomizewindows to facebook like! Great windows 7 tutorial website.

  2. AvatarAbretoie La Bella says

    May 19, 2011 at 8:26 am

    Thank you very much.

  3. AvatarLATHIGARA BHAVIK D. says

    July 6, 2011 at 12:37 pm

    I am very much happy to be here.This is amazing site for windows 7 lover. We can find many more cool and of course useful tutorials . This tutorials are like hidden secrets of windows 7. Thanks to respected Dr.Abhishek Ghosh. I love this site.

  4. AbhishekAbhishek says

    July 6, 2011 at 2:00 pm

    Lathigara, welcome to TheCustomizeWindows.

    Thank you very much for your kind words. I am very glad that you’ve enjoyed the Tutorials.

    -Abhishek

  5. AvatarMarshall says

    July 28, 2011 at 9:59 pm

    I realize it says for Windows 7, but could it work for Windows Vista on a Large external hard drive. I’m wondering cause its mainly for Vista, but also if someone puts this Coding while using Windows 7 and then hooks the external hard drive to a computer with Vista would it not work.

    Hope you understand my general question. I just need something for light locking.

  6. AbhishekAbhishek says

    July 28, 2011 at 10:26 pm

    I could not recommend it any more for any kind of “real usage”, because of the inherited security risk. I understand your situation, but as I have said “I could not recommend it”. One can now easily break the password by a patch created and available in the warez sites (for breaking passwords of an app, one visitor reported the mishap). It is now good for theoretical purpose only.

    Kindly use Folder Lock or File Lock Free like apps.

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023
  • What is Vehicular Ad-Hoc Network? January 24, 2023
  • Difference Between Panel Light, COB Light, Track Light January 21, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Lock any Folder with password," in The Customize Windows, May 14, 2011, January 29, 2023, https://thecustomizewindows.com/2011/05/lock-any-folder-with-password/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT