Reputation: 5037
Third-party application creates a file, which I read. After the full writing of the file, the app deletes it. How can I lock it so it can't be deleted?
Upvotes: 0
Views: 219
Reputation: 7734
Check LockFile API function.
LockFile
Upvotes: 1
Reputation: 19956
Keep it open and nobody will be able to delete it.
Upvotes: 3