if Li_Logchk = '9' then
begin
//실행
Winexec('c:sgposrasdial.exe', sw_show)
end
else
begin
//kill하고
hApp := FindWindow('TApplication','c:sgposrasdial.exe');
SendMessage( hApp, WM_SYSCOMMAND, SC_CLOSE, 0 );
//다시 실행
Winexec('c:sgposrasdial.exe', sw_show);
end;
중 어디가 잘못되었나요?...