A real locking folder

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2005
Posts: 2
Reputation: gluber is an unknown quantity at this point 
Solved Threads: 0
gluber gluber is offline Offline
Newbie Poster

A real locking folder

 
0
  #1
Jul 12th, 2005
Hello.. it's me, again :mrgreen:
sorry but I really need code for locking folder
not a code for changing the attribut.
'cause i want to put my precious file in that folder
so my friend can't steal it :evil: .

Everybody in the world who can/want to help me please send your little
knowledge to this newbies
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 62
Reputation: freemind is an unknown quantity at this point 
Solved Threads: 1
freemind's Avatar
freemind freemind is offline Offline
Junior Poster in Training

Re: A real locking folder

 
0
  #2
Jul 12th, 2005
More or less on every operating system you have to cope with folder's attributes to enforce some way of protection to it's contents. One way is being the root of the system and provide the necessary changes to directory's attributes and making it unaccessible for any other user or simply hiding it. Since this forum especially is for coding (C/C++) my personal advice is to go to the right forum first or (the better option) - consider a lot of coding and reading. In the end you'll be able to protect yourself from some considerable number (at least) of actual or only virtual enemies.
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,740
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 739
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: A real locking folder

 
0
  #3
Jul 12th, 2005
>sorry but I really need code for locking folder
If I recall correctly, you never specified what you think "locking a folder" means. So, instead of starting a new thread with the same stupid question, why not try asking a better question, as I suggested in your last thread?

>not a code for changing the attribut.
Okay, okay, here's the super secret code for "locking" a folder so that nobody can get to the file:
  1. #include <windows.h>
  2.  
  3. int main()
  4. {
  5. RemoveDirectory ( "my_super_secret_folder" );
  6. }
Please don't post about this question again until you're smart enough to realize that permissions and attributes are the only way to "lock" a file (as you're using the term) aside from deleting it.

>so my friend can't steal it
Encrypt the file, put it on a thumb drive and keep chained to your pocket if you're so worried about it.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC