Check out this UDF which returns a list of running processes.

The last post in that thread has some examples - basically, check for that process and exit if it is present/running.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D