How to prevent copying a file
-
In an Visual C++ 6.0 application, I need to prevent copying the specified file to other directory, but I don't know how to do. Please help me!!! Thank you very much! P.S. If maybe, you can demonstrate an small application about this. Thank you!
Prevent who ? You could open the file with
CFile
and use one of the flag to prevent other processed to access it.
Maximilien Lincourt Your Head A Splode - Strong Bad
-
In an Visual C++ 6.0 application, I need to prevent copying the specified file to other directory, but I don't know how to do. Please help me!!! Thank you very much! P.S. If maybe, you can demonstrate an small application about this. Thank you!
You would need to set this restriction at the OS level.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
You would need to set this restriction at the OS level.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Create a service which opens an exclusive handle to the file. This will prevent copying and deleting.
-
If maybe, you can demonstrate how you do it? Because, I don't still understand you. Can you help me!!! Please!!! Thank you very much!