Does Process.WaitForExit() Really Wait?

  • Thread starter Thread starter Jonathan Wood
  • Start date Start date
Or you can just run the "Handle" tool from Sysinternals (now bought by
Microsoft) which can show you who is having handles to a given file.
You can just run "handle.exe <my file name> >someLogFile.txt" before
you do the delete, in case the delete fails just look in the
someLogFile.txt to see who had that file open at that time. Once you
know who is to blame you will know how to fix/hack it.

florin
 
Back
Top