Hi dears
i want to write a C++ code to hide a text/doc file. Can anyone help me how i should proceed
Hi dears
i want to write a C++ code to hide a text/doc file. Can anyone help me how i should proceed
Hide?
Why?
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
When you say "hide", do you mean setting the file attribute to hidden?
Mainframe assembler programmer by trade. C coder when I can.
Are you talking about encryption? If so then that is easy. Or you could archive it until you need it again.
Definitly to "hide", i mean to set its attributes hidden and not encryption.So that i can archive at anyother time.
On Windows you might need SetFileAttributes.
I might be wrong.
Quoted more than 1000 times (I hope).Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
Unfortunately, that can easily be circumvented thru windows explorer by choosing the Tools option from the menu, next Folder options and then select the View tab and finally enable "show hidden files and folders". Windows explorer will now show all hidden files and folders.
Another way would be to intercept the O/S I/O requests on any file(s) and/or folder(s) to be hidden. Thus, bypassing the item to be hidden.
If it's an NTFS file system, you can Deny all access to the file to everyone except a certain user. I'm not sure what the WIN32 API calls are to do that, but just right-click on the file and go to Properties, click on the Secutiry tab...
Parts of this thread was moved to Operating Systems and Security Against Viruses.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)