Locking files
-
I have a typical need in which I want to lock a file so that no software can access it, not even copy it. Any ideas as to how I can do this? TIA
I think you just need to open this file from your program. then, no software can access it until you close this file from your program.
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
-
I think you just need to open this file from your program. then, no software can access it until you close this file from your program.
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
-
But still we can copy that file.. Michael is right that if we open file through program no one can access it but it can be copied... rahul kulkarni
Not true. You can open the file in a way that denies other processes read and write access, so it can't be read for copying. The problem is as soon as your program ends or gets killed, the file is free-for-all again.
Regards, mav -- Black holes are the places where God divided by 0...