Although I believe it can be done via Windows API, I made something similar in the past using the pskill utility from sysinternals (now on Microsoft's technet site).
A single batch file killed and restarted the external application. I did not care checking whether the app was still running or not, but I never ran into troubles.
Message Edited by pincpanter on 07-10-2007 04:25 PM
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021