To Close another running program. handle:=findwindow('c:\program.exe',nil); sendmessage(handle,WM_CLOSE,0,0);