ggirish_k

ggirish_k

  • NA
  • 25
  • 0

how to lock dir from access by another process

Apr 24 2008 4:17 PM

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.