I have a customer that I made a custom app for. I have a timer on the form that does specific tasks every 1 second. One of the new tasks added is that the customer can set the path to an application that will get launched at a specific time. Since I won't know in advance the title of the application, I will need to find if a path to the exe file has been set, and check if it is running. If it is running do nothing. I would shell execute it otherwise. Because I will not know the handle, I cannot use FindWindow -- I will only have the path set to the executable, and I have noticed that other methods do not work with all 32 bit versions of Windows -- 95 thru 2000.
My question is - how can I (by knowing only the path to the executable of the other program) find out if it is running or not -- in all 32 bit versions of Windows? Does anybody have a sample of how this can be done?
Thank you in advance.