Possible Duplicate:
FileStream with locked file
I am trying to build an AV for my college project and during scanning I am getting exception-Access denied,file is used by another process and hence can't scan the file.Also when it's opened in windows explorer,same thing happens.I also used Fileshare.ReadWrite but of no use.It'mostly with C: drive files.