Hey,

I was kind of surprised to find no results to my question on a search in VB.NET - very surprising to see no one has wanted this, or was i just searching wrong?

Well, my problem is this. I have a program that renames an exe, but of course if the exe is open it wont work.

So i need some code to detect whether the exe is running, and if it is, shut it down so that i can rename it.

This is a really important aspect to my program as it is very likely that the exe is open at the time.

Thanks very much, I'm sure i wrote something like this in vb6. I'll try to see if i still have it.