SET PROCEDURE TO Process ADDITIVE oProcess = CREATEOBJ('API_AppRun','adist.EXE '+m.StringFile,'C:\','NOR') *Run the application and don't wait to terminate oProcess.LaunchApp() *Check the exit status; 259 means still running IF oProcess.CheckProcessExitCode() = 259 wait window 'Still running' ELSE wait window 'Terminated with a '+alltrim(str(oProcess.CheckProcessExitCode())) ENDIF ? oProcess.KillProc() oProcess = ''