0

I'm making an update software who could raise exceptions if unknown process are running.

There is a way during catching an UnauthorizedAccessException to get the process name who cause problems, kill this process and continue my update?

Thanks

  • Are you asking how to determine the process locking an executable file? - http://stackoverflow.com/questions/860656/using-c-how-does-one-figure-out-what-process-locked-a-file – Alex K. Jul 19 '16 at 16:08
  • Yeah, like when I try to replace an executable file but it runs in background, I want to kill it and replace it. – Émile Pettersen-Coulombe Jul 19 '16 at 16:10

0 Answers0