Just a quick question for you all. I'm using kix2exe to package kixtart/kixforms apps and running them from client desktops. But I'm having a hard time figuring out a way to tell if the app is already running or not when it is launched. I was using the below simple UDF, but of course, it does not help if somebody renames the executable. Anybody know how to retrieve the 'original file name' from the version info for example?

 Code:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;  CHECKS FOR A RUNNING PROGRAM.                ;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Function CheckForProcess($exe)
   Dim $processes,$process
   $processes=GetObject("winmgmts:{impersonationLevel=impersonate}!root\cimv2").ExecQuery("select * from Win32_Process")
   For Each $process in $processes
      If $process.Name = $exe
         $CheckForProcess=$CheckForProcess+1
      EndIf
   Next
EndFunction