0
Answer

how to lock dir from access by another process

ggirish_k

ggirish_k

16y
1.6k
1

I have an ASP.NET application. In one of the asp.net page for eg : default.aspx I will be performing some read/write/delete operations to files present in a common directory. I have other pages where i usually read the same set of files from this common directory. The read/write/delete operations usually take a couple of seconds to a max of 1 min before they are finished.During this time I do not want any other aspx pages in my application to access this common folder. Only after the whole read/write/delete operations are done i want to allow other process/threads to access this common directory. I would like to know if there is way do accomplish this task.