Original Post
I would like a lightweight way to lock a file in the same way that it is locked when the file is open for reading (other programs can open it for reading, but not writing/can't delete it). Right now, I am just opening the files and keeping them open until I want to release the lock, but I need to do this for potentially many thousands of files at a time. Is there a more lightweight handle I can open? Do you think the OS (windows XP) would have an issue if I opened thousands of files at once (but didn't actually use them)?