I'm writing a small programmme that finds the pid of a ruuning exe file and then kills the file. I can't seem to ge the pid of the file. I'm not too sure if this is to do with how I'm trying to find the file. Any help woulf be appreciated. My code fails at the getting file process ID stage.