I know this is forum is for sercuirty related programing but I'm already here and I just have a lil question to ask so anyway.

I need to make a program that will run in the back ground and will just stay there and every 5 min or so it see if a program is runing and if it is it will kill it, I have no idea how I could do this.

I was thinking that I could just use a timer but then I relized that I would get a run time error becouse once it trys to close it and its not there it will close.

Well any help would be aprecated.