Hi Markus,
check out this Message#
Message ID: 54274 it may help. There are lots of variations on this theme, if you search for "MUTEX" you could find other options.
> Hello,
>
>
> in my program (let's call: MAIN.EXE) i start a second programm (let's call: second.exe) with the run command. The problem now is, that my user can start my programm (=MAIN) several times. The second program can take about 2 minutes to finish - if the user starts my program MAIN during this 2 minutes again, the second program (SECOND) will also start for a second time, third time and s.o. ....
>
> If i'm looking in the windows task manager, i can see the processes - how can i check, if the process SECOND.EXE is still running ?
>
> Many thanks
>
>
> Markus
Frank.
Frank Cazabon
Samaan Systems Ltd.
www.SamaanSystems.com/