Tip & How-To about HP Pavilion a1410n (ER890AA) PC Desktop

Create a password protected folder without any special software

In an earlier post I had written about how to create an invisible folder. That’s a method to create a merely invisible folder with no real protection.
Now, here we will see how to create a folder that will not just be invisible, but also require a password to reveal it and open it. The best part is that you don’t need any special software to do this. Just plain old Notepad is all that you need.
Here is the code that you need:
cls
@ECHO OFF
title Folder Personal
if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK
if NOT EXIST Personal 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 Personal “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%==pwd123 HERE goto FAIL
attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” Personal
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Personal
echo Personal created successfully
goto End
:End
Now here is what you need to do:
Just copy the above code and paste it into Notepad. Save it by giving it any name you choose. Assuming, the file is called secret.txt, change the extension to ‘.bat‘ so that the new name becomes secret.bat. What you get is a batch file. You could actually save one step by saving the file in Notepad directly as secret.bat by enclosing the file name like this: “secret.bat” . This batch file is the one that you need. You can edit this batch file to change the folder name and the password. To change the name of the folder that is created, change the ‘Personal’ (in bold in the above code) to any another name you choose. Likewise change the ‘pwd123′ (in red in the code) to anything else.
Now let’s see how to use it. Place the file in the location where you would like to create your protected folder. Run the batch file by double clicking on it. This will create a folder named Personal in the same location as the batch file. You can now open this folder and place any files in it. Once you are finished, run the batch file again. You will be asked whether you want to lock the folder. Entry ‘Y’ (for Yes) and hit Enter. The folder becomes invisible. To retrieve the folder, run the batch file again. You will be prompted to enter the password. Enter the password, hit enter and voila! the folder appears.
Important: The batch file acts like a key to open the locked folder. So once you have created and locked a folder, do not keep the batch file in the same location since anybody can open the batch file and view your password. So I would suggest that you keep the batch file in a separate and safe place or better still keep it on your pen drive or flash drive. That way when you want to open the folder just copy the batch file to the location where you have your protected folder and run it.
Do remember that the above method is not intended to act as a substitute for the numerous free and commercial softwares that are specifically designed to provide security and encryption to your data.
Update: I got comments saying the code does not work. Of course I did check it before posting it here. But I have identified the problem. The problem is with the straight double quotes used in the code in this post. Once you copy the code you would also need to change each of the double quotes with your keyboard double quotes. That might seem a lot of work for some. So I thought it would be easier to give away the batch file itself. You can download the file here. (Use right-click and ‘Save Target as’ or ‘Save Link as’).

Posted by on

HP Pavilion a1410n (ER890AA) PC Desktop Logo

Related Topics:

Related Questions:

1 Answer

hi im anthony and i had bought a laptop from a guy and it has k9 web protection on it and im tryn to get it took off can u pleasde help me


there are two methods you can try.
Method 1
If you have the administrator account password for the local computer and the best way to uninstall K9 web filter from the local computer is to re-install it! Re-install k9 web protection will simply get you a new license code and a new password you can enter without the need of old password.
1.Open K9 web protection website 2.Click "get K9 NOW" tab on the top-left 3.Fill out the information and your email. 4.Download the K9 Web protection software from the link included in the email and keep a copy of the license. 5.Grab a version of the K9 web protection installed on your computer, a Google search should do the job. 6.Open "Task Manager" by press (Ctrl+Alt+Delete) and end the process K9filter found in the "Process" tab. 7.Now, you can safely delete the K9 web protection program files. Open computer explorer and go to the folder where K9 is originally installed. It can be found mostly at C:\Program Files/Blue Coat k9 Web Protection. 8.Remove the contents of the folder but not the folder. 9.Run the K9 web protection setup/installer file which has the same version as the one you just delete 10.Provide the license and create your new password 11.Point the installation folder to the same folder you just empty the contents earlier on 12.Now you can have a re-installed K9 web protection with a password you know. How do you uninstall K9 web protection now? Use the new password you just created If something goes wrong, install the K9 web protection program downloaded from Step 4.
Method 2
Reboot Windows into safe mode: restart your computer and hold "F8? key until you see the menu to choose "Safe Mode" Login to windows and go to "Program Files" directory and delete the K9 folder manually (delete only the contents but leave the folder) Click "Start"->"Run" and type "msconfig" Check the tab "Services" and tab "Startup" Un-check anything that is related to k9 If somehow this method is messed up, try to download K9 again to at least restore your previous installation. If this still does not work, try to install Revo Uninstaller.
Here is a video tutorial

Aug 24, 2011 | Dell Inspiron 1501 Notebook

1 Answer

How to Make Invisible Password Protected Folder Submitted by Srikanth on Thursday, 10 December 200930 Comments Do you want to password protect your folder? Do you want to make it invisible so that it remains unnoticed by the normal users? Well here is a way to do that. In this post I will show you how to make a password protected folder in Windows without using any additional software. Here is is step by step procedure to create a password protected folder. How to create a Password Protected Folder Step-1: Create a new folder (Right-click -> New -> Folder) and give it any name of your choice. For instance I name it as ABC. Step-2: Now in this folder place all the important files, documents or any folders that you want to password protect. Step-3: Now Right-click on this folder (ABC) and select the option Send To -> Compressed (zipped) Folder. Step-4: Now a new compressed zipped folder gets created next this folder (ABC) with the same name. Step-5: Double-click on this compressed zipped folder and you should see your original folder (ABC) here. Step-6: Now goto the File menu and select the option Add a password. ie: File -> Add a password Now a small window will pop up and here you can set your desired password. Once the password is set, the folder will ask for the password every time it is opened. Thus you have now created the password protected folder. How to make it Invisible Step-1: Now Right-click on this password protected folder and select Properties. Step-2: At the bottom select the option Hidden and press OK. Now your folder gets invisible (hidden). Step-3: In order to unhide this folder go to My Computer ? >Tools -> Folder options. Switch to View tab, scroll down and under Hidden files and folders you?ll see the following two options Do not show hidden files and folders Show hidden files and folders Now select the second option and press OK. Now the invisible folder becomes visible in it?s location. To access it you need the password. To make it invisible again repeat step -1 through step-3 and select the first option and click OK. Now the folder becomes invisible once again. I hope you like this post. Pass your comments!! Cheers

Mar 30, 2010 | Computers & Internet

1 Answer

in My Computer Disk drive E - one of folder using earlier, now iam not find the same folder file. If i create in the same name folder showing the error message contains.... the existing file already contains


you just accidentally hide your newly created folder. go to tools it in your upper view. click the folder options. > view > click the show hidden files and folders > and also unchecked the hide protected operating system file (Recommended). after that you will see the folder that you create. im sure virus and trojans are responsible for that.

Jul 12, 2011 | Computers & Internet

Not finding what you are looking for?

2,650 people viewed this tip

Ask a Question

Usually answered in minutes!

Top HP Computers & Internet Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18394 Answers

Doctor PC
Doctor PC

Level 3 Expert

7733 Answers

Tony

Level 3 Expert

2600 Answers

Are you a HP Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Loading...