Is there a way to keep a file open, while not blocking its renaming by another application?
Keeping the file open does not block its renaming in Unix. Can I achieve the same behavior in Windows?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to open your file with the sharing mode
FILE_SHARE_DELETE(0x00000004).See MSDN help for the CreateFile API.