Go Back   Computer Forums > Articles | Tutorials | Tech Notes > Articles | Computer and Server Software
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 12-23-2010, 05:35 AM   #1
JCB
Daemon Poster
 
JCB's Avatar
 
Join Date: Oct 2004
Posts: 1,302
Default How To Create A Password Protected Folder In Windows 7

In this guide I will show you step by step a very easy way how to create a secure password protected folder in windows 7. You might want to store secret / private files in here that you don’t want anyone else to access. The best thing about this guide is that you don’t need any 3rd party software to do this.

Steps To : How To Create A Password Protected Folder In Windows 7

-Create a folder and give it any name you wish. Double click on the folder and then right click and select “New” > “Text Document” Now rename this file to password.bat and make sure the file extension is .bat and not .bat.txt. Now open the file and copy the below text and then paste it in to the file.


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%== ENTER YOUR 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
Now replace the text ENTER YOUR PASSWORD HERE with a password of your choice. Make sure you don’t forget the password.

-Now double click on the password.bat file and this will create a Private folder. Now copy and paste the files you wish to keep private in to this private folder.

-When you have finished copying the files go back to the password.bat file and double click on it again. You will get prompted. “Are You Sure You Want To Lock The Folder Y/N” Type Y and hit enter. The folder will now disappear. I recommend moving the Password.bat file to someone else on your computer.

-If you want your folder to re-appear move the Password.bat file back in to the folder you created the folder in and double click on the Password.bat file, enter your password and hit enter, your folder will now re-apear.


Warning : How To Create A Password Protected Folder In Windows 7

This script is a very basic script to work out how it works and how to get around it. I would say 80% of IT trained staff will be able to hack this password protected folder, This is why I recommended to move the password.bat file after you have secured your folder.
__________________

__________________
Check Out My Computer Related YouTube Channel @ Click Here
JCB is offline   Reply With Quote
Old 12-23-2010, 05:38 AM   #2
Baseband Member
 
uceicko's Avatar
 
Join Date: Dec 2010
Posts: 33
Default Re: How To Create A Password Protected Folder In Windows 7

i'll try this during xmas time
__________________

uceicko is offline   Reply With Quote
Old 12-23-2010, 05:43 AM   #3
Daemon Poster
 
Join Date: Oct 2010
Posts: 624
Default Re: How To Create A Password Protected Folder In Windows 7

would it not be easier just to use a USB stick. that way nothing is left on a hard drive?
__________________
Asus M4A88T-M/USB3<>PhenomII X4 965e<>Asus ENGTX460
Seagate 320GB/1TB<>Win7 Ulti 64Bit<>Antec900
SyncMaster 2220WM<>HyperX 16gb<>Cooler Master 600W
detox is offline   Reply With Quote
Old 01-05-2011, 05:09 PM   #4
11
Beta Member
 
11's Avatar
 
Join Date: Jan 2011
Posts: 1
Default Re: How To Create A Password Protected Folder In Windows 7

I'll be doing this tomorrow.
11 is offline   Reply With Quote
Old 01-13-2011, 12:39 PM   #5
Baseband Member
 
Join Date: Jan 2011
Posts: 37
Default Re: How To Create A Password Protected Folder In Windows 7

I shall try it later
shehzad is offline   Reply With Quote
Old 05-20-2011, 02:12 AM   #6
Solid State Member
 
Join Date: May 2011
Posts: 11
Default Re: How To Create A Password Protected Folder In Windows 7

When you have finished copying the files go back to the password.bat file and double click on it again. You will get prompted. “Are You Sure You Want To Lock The Folder Y/N” Type Y and hit enter. The folder will now disappear. I recommend moving the Password.bat file to someone else on your computer.
Johnwalton is offline   Reply With Quote
Old 05-20-2011, 06:58 AM   #7
JCB
Daemon Poster
 
JCB's Avatar
 
Join Date: Oct 2004
Posts: 1,302
Default Re: How To Create A Password Protected Folder In Windows 7

Quote:
Originally Posted by Johnwalton View Post
I recommend moving the Password.bat file to someone else on your computer.
Thats a good idea, you can move the Password.bat file back when you need to unprotect the folder
JCB is offline   Reply With Quote
Old 05-27-2011, 11:13 PM   #8
Solid State Member
 
Join Date: May 2011
Posts: 18
Default Re: How To Create A Password Protected Folder In Windows 7

it really works even in Windows XP.

GREAT WORK!
graveknight is offline   Reply With Quote
Old 05-28-2011, 05:13 AM   #9
Fully Optimized
 
~Darkseeker~'s Avatar
 
Join Date: Jan 2010
Location: Welwyn Garden City, United Kingdom
Posts: 2,494
Default Re: How To Create A Password Protected Folder In Windows 7

Works for me.
__________________
EVGA SLI Micro Z68 // Intel i5-2500k @ 4.4GHz // 8GB Corsair Vengeance 1866MHz // Overclocked ASUS GTX 660 Ti // Corsair Carbide SPEC-03 // Kingston Hyper-X 120GB // 2TB WD Green + 500GB WD Black
#JC4PM
~Darkseeker~ is offline   Reply With Quote
Old 05-28-2011, 05:41 AM   #10
Daemon Poster
 
CrackerJacker's Avatar
 
Join Date: Jun 2006
Location: USA
Posts: 987
Send a message via Skype™ to CrackerJacker
Default Re: How To Create A Password Protected Folder In Windows 7

If you wanna be very careful do a password protected winrar. But thats a good script tho. Incase you got something you wanna hide from your computerly challenged wife lol
__________________

__________________
USAF KC-135R Crew Chief
i7 2770 @ 3.4ghz, Geforce GTX 560 ti, 8GB DDR3 1600, SSD 120gb, cup holder
I would imagine if you could understand Morse Code, a tap dancer would drive you crazy
CrackerJacker is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 04:43 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0