In addition to BrowserUk's comment: Windows won't let you delete or even rename a file that is open by another process. That's one of the bigger differences between Windows and Unix/Linux.
Comment on Re: Checking "Modify" property of the file on windows