C'è un modo per ottenere il PID da un processo che sta bloccando un file usando C #?

StackOverflow https://stackoverflow.com/questions/816645

  •  03-07-2019
  •  | 
  •  

Domanda

C'è un modo per ottenere il PID da un processo che sta bloccando un file usando C #?

È stato utile?

Soluzione

Non so se può essere fatto interamente all'interno del framework, ma forse potresti chiamare Handle.exe di SysInternals per eseguire il lavoro pesante qui?

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top