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:
@ Figli: Those are not me.
 

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
Ah well... imitation is the sincerest form of flattery.
 

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
Dont Worry Figli , Google "watches" all ;)
 

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
fantastic man.....................................
carry on .................................
 

My Computer

Computer Manufacturer/Model Number
inspiron 1545
OS
windows 7 ultimate 32-bit
CPU
intel core(TM)2 DUO
Thanks 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
Can't see what i'm doing wrong, but the private folder changes it's name but never becomes invisible and can open it by clicking it. f i click the locker file it asks for a password. Any ideas?
 

My Computer

OS
windows 7 pro 64 bit
CPU
i5 760
Motherboard
GIGABYTE GA-P55A-UD3
Memory
4GB G skill DDR3 1600
Graphics Card(s)
XFX 5850
Sound Card
audigy 2 ZS
Monitor(s) Displays
samsung 22" 1650x1080
Hard Drives
Patriot SSD 120GB Inferno
maxtor 300GB IDE storage drive
PSU
Corsair TX650w
@dazco: Check the code.Copy the code and paste in Notepad only (Not MS Word or Wordpad). Save as "all files" [Not text; change from default].

This command is not working for you:

attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}

+h means hidden attribute, somehow it is not getting executed.
 

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
not work!!!.. i can still view n acces the folder if I unchecked Hide protected Operating system file in Folder Options
 

My Computer

OS
Windows 7 Ultimate X64 SP1
CPU
Phenom B55
Motherboard
DFI lanparty M2RS
Memory
Corsair XMS2 8GB
Graphics Card(s)
zotac 9800 GTX
Sound Card
-
Monitor(s) Displays
LG W2253S
Screen Resolution
1920 x 1080
Hard Drives
WDC 1TB Master, WDC 2TB Slave
PSU
Seasonic M12 520
Case
Simbadda :p
Cooling
Thermaltake Frio
Keyboard
-
Mouse
A4tech Glazer :p
@dazco: Check the code.Copy the code and paste in Notepad only (Not MS Word or Wordpad). Save as "all files" [Not text; change from default].

This command is not working for you:

attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}

+h means hidden attribute, somehow it is not getting executed.

I understand. thats exactly what i did. I replied here probably 2 months ago so i can't recall everything, but if i remember correctly the problem was that it doesn't work if you have any of those folder options checked where it shows all hidden files. thats all i believe this really is is a way to make a folder and have it show/hide via password instead of going into folder options and doing it. And that you can do it only to one file. But what good is it if someone shows hidden files? Anyone that doesn't have enough PC savvy to figure that out would also not be able to figure out other simpkler ways such as just stuffing the folder severl folders deep in the system files or other such way to hide things. Anyone with any savvy would show hidden files if they were looking thru your PC for something
 

My Computer

OS
windows 7 pro 64 bit
CPU
i5 760
Motherboard
GIGABYTE GA-P55A-UD3
Memory
4GB G skill DDR3 1600
Graphics Card(s)
XFX 5850
Sound Card
audigy 2 ZS
Monitor(s) Displays
samsung 22" 1650x1080
Hard Drives
Patriot SSD 120GB Inferno
maxtor 300GB IDE storage drive
PSU
Corsair TX650w
Hi W7, I have been using this for a week and its easier than a passworded .zip file. My problem is when I access the folder on my desktop from my laptop using 'Network' file sharing method, I am unable to open the locker.bat file. Can you help ?
 

My Computer

Computer Manufacturer/Model Number
Look in my Signature.
OS
Win7 H.Prem. 32bit+SP1
@Bazolcool : Its really odd...frankly I have no other idea to suggest you :confused:

@Dazko: Actually, the code need to be written freshly again to clear these small bugs.
You are right, thats what I do...place the files in system folder and every time I access, them, change the folders name ;)

@ Roderunner: Its preventing you for security reason. Try to open any other .bat file ; you will face the same problem.


Again, use the method for lighter reason; do not use it to protect important files. In the later case, you need to use professional file hiding software (paid or free).
 

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
Again, use the method for lighter reason; do not use it to protect important files. In the later case, you need to use professional file hiding software (paid or free).

I'm Agree whit This :cool:
 

My Computer

OS
Windows 7 Ultimate X64 SP1
CPU
Phenom B55
Motherboard
DFI lanparty M2RS
Memory
Corsair XMS2 8GB
Graphics Card(s)
zotac 9800 GTX
Sound Card
-
Monitor(s) Displays
LG W2253S
Screen Resolution
1920 x 1080
Hard Drives
WDC 1TB Master, WDC 2TB Slave
PSU
Seasonic M12 520
Case
Simbadda :p
Cooling
Thermaltake Frio
Keyboard
-
Mouse
A4tech Glazer :p
wonder

dude nice work. keep it up.......
 

My Computer

OS
windows 7 professional x64
Abhi Dada awesome thread & did work just fine....but does this work for locking a complete partition drive like c:/d:???
 

My Computer

Computer type
Laptop
OS
Windows 7 Ultimate
Suminar: Thanks for reading. Please visit my blog and I will reply there. I do not get time to login here and reply, I hope you can understand the situation.
 

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
Sure not an issue...will check your blog & will ask you all question!!!
 

My Computer

Computer type
Laptop
OS
Windows 7 Ultimate
tx dude

i ve tried its going good and i also changed the password...:party:
 

My Computer

OS
win7 ultimate
I tried to double click on locker but the private folder did not disappear :cry: can you help me on this but am sorry !!
 

My Computer

Computer Manufacturer/Model Number
acer aspire 5332
OS
Windows 7 Home Premium 32bit
CPU
intel celeron
Motherboard
acer
Memory
2GB
Graphics Card(s)
intel(R) GMA Driver for mobile
Sound Card
speaker
Monitor(s) Displays
Mobile PC display
Hard Drives
160GB
Doesn't work at all here.
 

My Computers

System One System Two

  • Computer type
    PC/Desktop
    OS
    7 X64
    CPU
    i5 8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Hard Drives
    various
    PSU
    pure power 11 400w cm
    Case
    Coolermaster
    Cooling
    cryorig m9i
  • Computer type
    PC/Desktop
    OS
    7x64
    CPU
    g5400
    Motherboard
    ga b365m ds3h
    Memory
    8gb ddr4 2400
    PSU
    xfx pro 450w
yap It doesn't work can you tell me what to do ?
 

My Computer

Computer Manufacturer/Model Number
acer aspire 5332
OS
Windows 7 Home Premium 32bit
CPU
intel celeron
Motherboard
acer
Memory
2GB
Graphics Card(s)
intel(R) GMA Driver for mobile
Sound Card
speaker
Monitor(s) Displays
Mobile PC display
Hard Drives
160GB
Back
Top