Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Password protected folders without programs?

13 Jan 2010   #1
andexls

Windows 7
 
 
Password protected folders without programs?

Back in Windows XP, there was a trick to make a folder totally inacessible. It was a bat file with comands that would change the name of the folder to some special name, which would make the folder inacessible, and not localizable through "Find (F3)". The code of this bat was the following:

Code:
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
There's some flaws in that method: the person could enable seeing the hidden folders and extensions, and just remove the code at the end of the folder, to make it accessible. Or the person could check the bat file for the password, but this could be resolved by compiling the bat file to an exe. Anyway it's nice for hidding files from casual computer users.

Well, the fact is that it doesn't work in Vista or 7. Is there any other "special name" that could be replaced by that one, in order to make it work on Win7?


My System SpecsSystem Spec
.

13 Jan 2010   #2
richc46

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium SP1, clean install, upgrade disc
 
 

Try this. Go to folder right click...properties...security...permissions. You could give permission only to yourself. This does not work of course if others are using your account. In that case set up separate accounts.
My System SpecsSystem Spec
13 Jan 2010   #3
andexls

Windows 7
 
 

Quote   Quote: Originally Posted by richc46 View Post
Try this. Go to folder right click...properties...security...permissions. You could give permission only to yourself. This does not work of course if others are using your account. In that case set up separate accounts.
Nah, I meant protecting it even from the actual user. The problem is: sometimes there's some friends here, and I leave my user logged in for them, since all the games, programs and stuff are already configured here. But those mother****ers insist to search for my porn files when I'm not looking. I would like to prevent this by password locking the folder.
My System SpecsSystem Spec
.


13 Jan 2010   #4
richc46

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium SP1, clean install, upgrade disc
 
 

Quote   Quote: Originally Posted by andexls View Post
Quote   Quote: Originally Posted by richc46 View Post
Try this. Go to folder right click...properties...security...permissions. You could give permission only to yourself. This does not work of course if others are using your account. In that case set up separate accounts.
Nah, I meant protecting it even from the actual user. The problem is: sometimes there's some friends here, and I leave my user logged in for them, since all the games, programs and stuff are already configured here. But those mother****ers insist to search for my porn files when I'm not looking. I would like to prevent this by password locking the folder.
In lieu of a better way, you can open another account and put all your private files in that account. Give permission only to the second account.
My System SpecsSystem Spec
13 Jan 2010   #5
krazdkiller

 

Quote   Quote: Originally Posted by richc46 View Post
Quote   Quote: Originally Posted by andexls View Post
Quote   Quote: Originally Posted by richc46 View Post
Try this. Go to folder right click...properties...security...permissions. You could give permission only to yourself. This does not work of course if others are using your account. In that case set up separate accounts.
Nah, I meant protecting it even from the actual user. The problem is: sometimes there's some friends here, and I leave my user logged in for them, since all the games, programs and stuff are already configured here. But those mother****ers insist to search for my porn files when I'm not looking. I would like to prevent this by password locking the folder.
In lieu of a better way, you can open another account and put all your private files in that account. Give permission only to the second account.
make sure that you password that account.
My System SpecsSystem Spec
13 Jan 2010   #6
zigzag3143

Win 8 Release candidate 8400
 
 

Or Just encrypt the folder. Keeps prying eyes out completely see PGP
My System SpecsSystem Spec
13 Jan 2010   #7
richc46

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium SP1, clean install, upgrade disc
 
 

Quote   Quote: Originally Posted by zigzag3143 View Post
Or Just encrypt the folder. Keeps prying eyes out completely see PGP
Yes, much easier way, if you have an edition of Win 7, higher than Home Premium. If you do, I, too suggest encryption. You paid extra for that feature.
My System SpecsSystem Spec
13 Jan 2010   #8
DeaconFrost

Windows 7 Ultimate x64 SP1
 
 

Even if you don't have a higher version, you could always use something like TrueCrypt.
My System SpecsSystem Spec
13 Jan 2010   #9
andexls

Windows 7
 
 

I didn't want to encrypt the folder, just wanted to password protect it.
Anyway, I just found a nice and simple program to do it: Folder Protector.

Thanks for your help!
My System SpecsSystem Spec
13 Jan 2010   #10
richc46

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium SP1, clean install, upgrade disc
 
 

Sorry we could not be more help; happy that you did find a solution.
My System SpecsSystem Spec
Reply

 Password protected folders without programs?




Thread Tools





Similar help and support threads
Thread Forum
How To Change The Password On "Password Protected File Sharing"
So I've enabled password protected sharing for Windows 7 (for my first computer). http://www.sevenforums.com/attachments/tutorials/174369d1379302074t-password-protected-sharing-turn-off-windows-7-password.jpg So now, when I used my second computer to access my first computer's shared files,...
Network & Sharing
Password protected sharing is OFF, still asked for username/password?
I've read through pages and pages of search results for this, but they all seem to be between Win7 and XP, or something not quite the same as my problem. Here at home we are all using Windows 7 (a mix of Home Premium and Ultimate). I have an HTPC which has all our DVDs on. This PC has a few...
Network & Sharing
Password protected network share folders
I want to share 3 folders to 3 computers. And I want to set different passwords to each folder so they can't see each other's files. I googled but I really can't find the working method. Here's what I tried so far: I Created a new user Ben, passworded. Computer Management > System Tools >...
Network & Sharing
password protected programs?
hi, is there a way to create a password for the program to execute? in other words, when executing a program, it asks for a password in order for the software to execute. thank you
Software
Xp password protected sharing with win 7
Hey guys, I am trying to get a networking issue between Windows 7 Ultimate 64 bit and Windows XP Pro resolved. Here goes.. So I use advanced sharing in Windows XP and I am sharing one folder. I removed the "everyone" permission and added my current user name to the permissions list. I...
Network & Sharing
Password Protected Sharing
Hey Guys, Just noticed a very weird behaviour. In Advanced Sharing Settings, when I select "Turn off password protected sharing" under 'Home or Work' it also turns it off under 'Public'. When I turn it back on under 'Public' it turns it on again under 'Home or Work'. This kind of defeats the...
Network & Sharing

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 10:32.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App