Folder - Lock with a Password without Any Software

   Information
This will show you how to be able to lock and unlock a folder with a password in Windows 7 without having to use any 3rd party software.


Here's How:

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

2. Inside this folder make a ( TXT ) file & open it.

3. Copy and paste this code inside the New Text Document:

Code:
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

4. 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 .//
5. 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” :

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

7. 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 ?

8. Type Y. your private folder will disappear.

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

10. 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.



Read more: This tutorial shows how to Lock and hide a Folder with a password without using any Software. | Windows 7, Wordpress,Tips, Tricks, SEO, Computer, Tutorials, Software Downloads, Themes, Wallpapers
Under Creative Commons License: Attribution Non-Commercial No Derivatives
Original source: The Customize Windows
 
Last edited by a moderator:
Very nice tut. Shouldn't this belong in the tutorial section though?

I'd love to try this out, but I think I will wait until a mod or coder approves it first. Its not that I don't trust you, its just that last time I configured a .bar file, it completely ruined my computer to the point where even my BIOS wouldn't work anymore >.<
 

My Computer

Computer Manufacturer/Model Number
iBuyPower 551D3
OS
Windows 7 Home Premium 64-Bit
CPU
AMD Phenom II X4 965(3.4GHz)
Motherboard
AMD 770
Memory
4GB DDR3
Graphics Card(s)
ATI Radeon HD 5770
Sound Card
Integrated - 8 Channels
Monitor(s) Displays
ASUS VH242H - 23.6" LCD Monitor
Screen Resolution
1920x1080
Hard Drives
500GB SATAII
PSU
700W
Case
NZXT Apollo Gaming Tower
Keyboard
Deltaco - Swedish Gaming Keyboard
Mouse
GIGABYTE GM-M6800 Noble Black
AssaultRifle : Thank you.

Its always good to take a back up of the original file. The screenshots are from my own computer (I mean I did the things , when I wrote it). Yes, obviously you can wait for another person's approval. But, its an old thing actually (the code). What you said is not wrong, I have seen some people make codes and distributes them through blogs which has some suspicious codes. I posted another tutorial here , (How to run Silverlight in Opera browser), that was originally written by some one (the code), he deliberately inserted some extra strings and functions (so that it will point to other website). I modified that, removed the bug and posted here. Obviously, I gave no credit to the first person, because he created a malware.

Its very sad fact that you have bad experience too. I can understand your condition, mate :)

If Mods thinks, its appropiate, they will move it to tutorial. (I dont want to mess the fine section).
 

My Computer

Computer Manufacturer/Model Number
COMPAQ Presario Laptop
OS
Windows 7 Ultimate 64 bit, Mac OS X 10.6
CPU
Intel Pentium Dual Core @2.0GHz
Motherboard
Compaq Generic
Memory
12GB
Graphics Card(s)
NVIDIA Graphics For Mobile 512MB VRAM
Sound Card
IDT High definition Audio
Monitor(s) Displays
Laptop LCD Display
Screen Resolution
1280*800 Bright View Widescreen
Hard Drives
500 GB Primary Master@7200rpm + 1 TB External HDD
Cooling
Direct ; generic fan
Keyboard
Generic Laptop Keyboard
Mouse
Touch Pad
Internet Speed
3.1 Mbps wireless Broadband
Other Info
Generic Dock
Very interesting option for a folder only to lock. Someone was asking fews days ago about that manner.
Do you mind me to link this post to him? Thanks.

PS: Haven't tried yet.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Professional SP1 - x64 [Non-UEFI Boot]
CPU
Ivy Bridge Core i5 3570K (Delidded)
Motherboard
Asus P8Z77-V LE PLUS
Memory
G.Skill "Ares" DDR3 PC3-12800 - 1600MHz (16Gb)
Graphics Card(s)
Asus Dual-RX480-O4G
Sound Card
Creative Sound Blaster Z w/5.1 sound system
Monitor(s) Displays
Asus IPS 23"
Screen Resolution
16/9
Hard Drives
Internal:
500Go Sata 6Gb/s (x2)
500Go Sata 3Gb/s (x2)
SSD 60Go Sata 6Gb/s
PSU
In Win C 900W Series 80+ Platinum
Case
Thermaltake Chaser A71
Cooling
Custom Water Cooling Loop
Keyboard
Cooler Master QuickFire XTi
Mouse
Razer Imperator 2012 (4G)
Antivirus
MSE
Browser
IE 11.0.xxx Rtm
Other Info
"Raid0" with Intel Smart Response Technology (HDD/SSD)
Works OK but you need to remember to store the "locker.bat" file safely away from the directory preferably on a thumb drive or else anyone can edit it using notepad to find the "password here" line and then open your "protected" file!! :rolleyes:
 

My Computer

OS
win7
@non: I was not aware he asked for! I made this one for my own site nearly 3 weeks ago...just got the time today to post, before posting I made a search, saw that, someone was asking (thats why I wrote the lines before the tut). You can link anywhere. I will be glad if it comes to work for anyone. There is a way to hide a drive completely, I will post it here too.

@wilywombat: not thought that, a nice bug to point out! Basically, its a primitive way to hide. As far I know, this process is known from Windows 95 days!
 

My Computer

Computer Manufacturer/Model Number
COMPAQ Presario Laptop
OS
Windows 7 Ultimate 64 bit, Mac OS X 10.6
CPU
Intel Pentium Dual Core @2.0GHz
Motherboard
Compaq Generic
Memory
12GB
Graphics Card(s)
NVIDIA Graphics For Mobile 512MB VRAM
Sound Card
IDT High definition Audio
Monitor(s) Displays
Laptop LCD Display
Screen Resolution
1280*800 Bright View Widescreen
Hard Drives
500 GB Primary Master@7200rpm + 1 TB External HDD
Cooling
Direct ; generic fan
Keyboard
Generic Laptop Keyboard
Mouse
Touch Pad
Internet Speed
3.1 Mbps wireless Broadband
Other Info
Generic Dock
Very interesting and creative way to do this without added software. I'm always a fan of using what you already have to get things done.
 

My Computer

OS
XP / Win7 x64 Pro
CPU
Intel Quad-Core Q9450 @ 3.2GHz
Motherboard
Asus P5-E
Memory
2x2GB GSkill DDR2
Graphics Card(s)
NVIDIA GeForce 8600 GTS (EVGA)
Monitor(s) Displays
Dell 2408WFP
Screen Resolution
1920x1200
Very interesting and creative way to do this without added software. I'm always a fan of using what you already have to get things done.

Oh dear, am so glad to hear it. The next tutorial will be dedicated to you.
Take care!
 

My Computer

Computer Manufacturer/Model Number
COMPAQ Presario Laptop
OS
Windows 7 Ultimate 64 bit, Mac OS X 10.6
CPU
Intel Pentium Dual Core @2.0GHz
Motherboard
Compaq Generic
Memory
12GB
Graphics Card(s)
NVIDIA Graphics For Mobile 512MB VRAM
Sound Card
IDT High definition Audio
Monitor(s) Displays
Laptop LCD Display
Screen Resolution
1280*800 Bright View Widescreen
Hard Drives
500 GB Primary Master@7200rpm + 1 TB External HDD
Cooling
Direct ; generic fan
Keyboard
Generic Laptop Keyboard
Mouse
Touch Pad
Internet Speed
3.1 Mbps wireless Broadband
Other Info
Generic Dock
Hello nokian73me, well done! :party:
 

My Computer

Computer Manufacturer/Model Number
* BFK Customs *
OS
W 7 64-bit Ultimate
CPU
Intel Q9550 Yorkfield
Motherboard
ASUS P5Q Pro
Memory
8GB Dominator 8500C5D
Graphics Card(s)
ATI : XFX 5870
Sound Card
Realtek HD Audio 7-1
Monitor(s) Displays
1x 47" LCD HDMI & 3x 26" LCD HDMI
Screen Resolution
1920x1080P & 1920x1200
Hard Drives
1x 80GB Intel X25-M G2 SSD : 1x 500GB & 1x 640GB WD Caviar Black(s)
PSU
Corsair 620HX
Case
Cooler Master RC-690
Cooling
Tuniq Tower 120, 2x 140mm and 3x 120mm case fans
Keyboard
Microsoft 500
Mouse
Razer Diamondback 3G
Internet Speed
14 Mb/s
Other Info
1x Koutech 3Gb/s SATA HDD Hot Swap Rack
Thanks BFD :)
 

My Computer

Computer Manufacturer/Model Number
COMPAQ Presario Laptop
OS
Windows 7 Ultimate 64 bit, Mac OS X 10.6
CPU
Intel Pentium Dual Core @2.0GHz
Motherboard
Compaq Generic
Memory
12GB
Graphics Card(s)
NVIDIA Graphics For Mobile 512MB VRAM
Sound Card
IDT High definition Audio
Monitor(s) Displays
Laptop LCD Display
Screen Resolution
1280*800 Bright View Widescreen
Hard Drives
500 GB Primary Master@7200rpm + 1 TB External HDD
Cooling
Direct ; generic fan
Keyboard
Generic Laptop Keyboard
Mouse
Touch Pad
Internet Speed
3.1 Mbps wireless Broadband
Other Info
Generic Dock
@non: I was not aware he asked for! I made this one for my own site nearly 3 weeks ago...just got the time today to post, before posting I made a search, saw that, someone was asking (thats why I wrote the lines before the tut). You can link anywhere. I will be glad if it comes to work for anyone. There is a way to hide a drive completely, I will post it here too.

Glad this had been put in the Tutorial forum...this will be reference for those wanted and the Op wanting it had been linked to.
I've got already a software to crypt folders, but here, is the point!!:)
Thanks
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Professional SP1 - x64 [Non-UEFI Boot]
CPU
Ivy Bridge Core i5 3570K (Delidded)
Motherboard
Asus P8Z77-V LE PLUS
Memory
G.Skill "Ares" DDR3 PC3-12800 - 1600MHz (16Gb)
Graphics Card(s)
Asus Dual-RX480-O4G
Sound Card
Creative Sound Blaster Z w/5.1 sound system
Monitor(s) Displays
Asus IPS 23"
Screen Resolution
16/9
Hard Drives
Internal:
500Go Sata 6Gb/s (x2)
500Go Sata 3Gb/s (x2)
SSD 60Go Sata 6Gb/s
PSU
In Win C 900W Series 80+ Platinum
Case
Thermaltake Chaser A71
Cooling
Custom Water Cooling Loop
Keyboard
Cooler Master QuickFire XTi
Mouse
Razer Imperator 2012 (4G)
Antivirus
MSE
Browser
IE 11.0.xxx Rtm
Other Info
"Raid0" with Intel Smart Response Technology (HDD/SSD)
Nice tutorial! Didn't know this :) +rep
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Medion Erazer (note to self: insert model number) - with custom additions
OS
Windows 10 Pro x64
CPU
Intel Core i5 7400 @ 3.00GHz
Motherboard
OEM supllied with PC
Memory
8GB 2133Mhz DDR4 (OEM supplied)
Graphics Card(s)
Gygabyte Windforce GTX 1050Ti (Factory Overclocked)
Sound Card
Realtek
Monitor(s) Displays
Acer Al1980 + HKC
Screen Resolution
1360*768(HKC) / 1280*1024(Acer)
Hard Drives
1TB Toshiba
1TB WD Caviar Green
120GB Samsung Evo 840
PSU
OEM supplied (no power rating on case)
Case
OEM Supplied
Cooling
Stock
Keyboard
Logitech Wireless
Mouse
Logitect Wireless
Internet Speed
40Mb/s Down 10Mb/s Up
Antivirus
Defender
Browser
Firefox
Does this work on Ext HDDs also ? Let me explain - If I make this Private folder in an Ext HDD on (say) my home computer will the folder remain private on (say) my work computer also ?
 

My Computer

Computer Manufacturer/Model Number
Store Assembled
OS
Win 7
CPU
AMD Phenom™ II X6 1090T
Motherboard
ASUS M4A89GTD PRO/USB3 with AMD® 890GX/SB850 chipset
Memory
8 GB Corsair (2X4Gb)
Graphics Card(s)
Included in AMD® 890GX/SB850 chipset on MB
Sound Card
Included in AMD® 890GX/SB850 chipset on MB
Monitor(s) Displays
Dell ST 2210 21.5inch LCD
Hard Drives
Seagate Barracuda 7200.12 1TB SATA
PSU
500 W
Case
Zebronic ATX
Cooling
No extra cooling
Yes. It will work too for external HDD.
The HDD will remain private in any computer.
 

My Computer

Computer Manufacturer/Model Number
COMPAQ Presario Laptop
OS
Windows 7 Ultimate 64 bit, Mac OS X 10.6
CPU
Intel Pentium Dual Core @2.0GHz
Motherboard
Compaq Generic
Memory
12GB
Graphics Card(s)
NVIDIA Graphics For Mobile 512MB VRAM
Sound Card
IDT High definition Audio
Monitor(s) Displays
Laptop LCD Display
Screen Resolution
1280*800 Bright View Widescreen
Hard Drives
500 GB Primary Master@7200rpm + 1 TB External HDD
Cooling
Direct ; generic fan
Keyboard
Generic Laptop Keyboard
Mouse
Touch Pad
Internet Speed
3.1 Mbps wireless Broadband
Other Info
Generic Dock
This works great but it seems like the content within the folder is still searchable.

Like the folder can't be seen even if hidden folders is turned off. And the folder can't be accessed even if you have it shared once you use the locker bat.

However, if I go to the directory where the folder is and run a search for a file name in the folder- windows search finds the file. Even if indexing is not enabled for that folder/directory.

So I guess my question is how do I stop windows from being able to search that folder?

Using Windows 7 64bit btw*
 

My Computer

OS
Win 7
Vandetta,

You have to change the file association from general purpose file extension (*.jpeg, *.jpg, *.doc etc) to system files extension them (like *.dll).
Always open after renaming to original extension. I dont know any other way to prevent it universally (In all computers) while using this method. Have fun :)
 

My Computer

Computer Manufacturer/Model Number
COMPAQ Presario Laptop
OS
Windows 7 Ultimate 64 bit, Mac OS X 10.6
CPU
Intel Pentium Dual Core @2.0GHz
Motherboard
Compaq Generic
Memory
12GB
Graphics Card(s)
NVIDIA Graphics For Mobile 512MB VRAM
Sound Card
IDT High definition Audio
Monitor(s) Displays
Laptop LCD Display
Screen Resolution
1280*800 Bright View Widescreen
Hard Drives
500 GB Primary Master@7200rpm + 1 TB External HDD
Cooling
Direct ; generic fan
Keyboard
Generic Laptop Keyboard
Mouse
Touch Pad
Internet Speed
3.1 Mbps wireless Broadband
Other Info
Generic Dock
I don't follow... do you mean change the folder to have an extension like ".dll"

I know how to do that on files- but I don't know how to do that on folders. I guess it would have to be done from command prompt because I read a similar guide that showed how to hide folders by showing them as a large jpg. I guess I'll have to use truecrypt then.

Apparently there's no way to stop Win 7 from searching hidden files so I use a file name like "password" for instance and put it in the locked folder it will show up if I run a search in either the parent folder or the whole hard drive.
 

My Computer

OS
Win 7
Yes, change the files to have an extension like ".dll" ; yes you can do in the way you have said.
Note that, you can change the file permission from Right click on the file>properties>Security>Edit to prevent other users stop accessing it.

To prevent windows to stop searching all files ,in a particular computer (only), Goto control panel, type "search options" in the search field. Hit enter: You can partially change some settings (just look around).

(Its better to use professional locking tool or atleast Winzip/Winrar to keep your very important files safe; you can say, the tutorial is just a way to do as a geek, but I would not recommend it for serious works)
 

My Computer

Computer Manufacturer/Model Number
COMPAQ Presario Laptop
OS
Windows 7 Ultimate 64 bit, Mac OS X 10.6
CPU
Intel Pentium Dual Core @2.0GHz
Motherboard
Compaq Generic
Memory
12GB
Graphics Card(s)
NVIDIA Graphics For Mobile 512MB VRAM
Sound Card
IDT High definition Audio
Monitor(s) Displays
Laptop LCD Display
Screen Resolution
1280*800 Bright View Widescreen
Hard Drives
500 GB Primary Master@7200rpm + 1 TB External HDD
Cooling
Direct ; generic fan
Keyboard
Generic Laptop Keyboard
Mouse
Touch Pad
Internet Speed
3.1 Mbps wireless Broadband
Other Info
Generic Dock
nice tutorial dude ! :D
 

My Computer

Computer Manufacturer/Model Number
Acer Netbook AOD260
OS
Windows 7 Home Premium x86
CPU
Intel Atom N455 ( 1.66GHz , 512K Cache )
Motherboard
Acer
Memory
1 GB RAM
Graphics Card(s)
Intel GMA 3150
Sound Card
Realtek HD Audio
Monitor(s) Displays
Generic PnP Monitor
Screen Resolution
1024x600
Hard Drives
250 GB
Case
Netbook
Cooling
Fan
Keyboard
Acer Standard Keyboard
Mouse
Optical Mouse
Internet Speed
Slow.
Thank you very much mate :)
 

My Computer

Computer Manufacturer/Model Number
COMPAQ Presario Laptop
OS
Windows 7 Ultimate 64 bit, Mac OS X 10.6
CPU
Intel Pentium Dual Core @2.0GHz
Motherboard
Compaq Generic
Memory
12GB
Graphics Card(s)
NVIDIA Graphics For Mobile 512MB VRAM
Sound Card
IDT High definition Audio
Monitor(s) Displays
Laptop LCD Display
Screen Resolution
1280*800 Bright View Widescreen
Hard Drives
500 GB Primary Master@7200rpm + 1 TB External HDD
Cooling
Direct ; generic fan
Keyboard
Generic Laptop Keyboard
Mouse
Touch Pad
Internet Speed
3.1 Mbps wireless Broadband
Other Info
Generic Dock
Back
Top