We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

folder protection with password

yarek
yarek asked
on
Medium Priority
328 Views
Last Modified: 2010-04-04
Any way to protect a folder with a password in XP FAT32 ?
Comment
Watch Question

Commented:
Don't think so, all the ways I have seen a crude - ie just setting the hide attribute on the folder etc.

Good luck.
CodedKSenior Software Engineer
CERTIFIED EXPERT

Commented:
I have a way to hide the folder from the user ... but not password protect it...


use the code:

MoveFile('your filename', 'your filename' + '.{645FF040-5081-101B-9F08-00AA002F954E}')


It is the CLSID of the recycle bin.
Windows, marks as the folder as recycle bin when it gets the extension as the CLSID.
Actually, after converting it to recycling bin, it hides all the files.

To revert it use MoveWindow API again, rename the folder by excluding the CLSID. And that's all...

Hope this helps.

Commented:
That just makes it look like a Recycle Bin doesn't it? O.o
CodedKSenior Software Engineer
CERTIFIED EXPERT

Commented:
Yes ... but it hides the files !
CodedKSenior Software Engineer
CERTIFIED EXPERT

Commented:
Or you can simple do this :

Create an application with a timer.
Use some tricks to hide it from Task Manager.
Detect when a Folder with the specific name opens and close it.
Popup a window with a message to insert the right password.
If the user insert the right password the open it.

Commented:
Only problem is with that last method is the user can still
 * Use the command prompt
 * Use a programs Open/Save function to view the folders contents etc

Author

Commented:
I think the solution looks similar to windows XP compressed folders : You can protect them with a password.
Maybe this should be the solution :
create an .EXE with an icon that looks like a protected folder.
This EXE can modify itself: it can change its  password and also can embed files and folders : the included folders are deleted from the HD and can be restored with the password.

So any clue to ow an exe can change itself (change its password)  and FAST EMBED some files and folders at RUNTIME ?

Commented:
Yeap, and thats a very good idea/way of thinking about doing it.
I have seen some example code of this and will see if I can pull it up.

Commented:
http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_21551957.html

There you go, comes with an exmaple as well.
I have seen that code and played with the demo and it works fine so you can use these methods as the building blocks....
Software Developer
CERTIFIED EXPERT
Commented:
Use file system components, you can place files and folders inside a file and protect them

http://www.eldos.com/solfs/
http://www.aidaim.com/single_file_system.htm

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
CodedKSenior Software Engineer
CERTIFIED EXPERT

Commented:
Gwenas example can contain only one file i think.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.