ako by som spravil
if winexec then result:=ok else result:= false
nasiel som toto ale chcem to riesit cez winexec
var
StartInfo : TStartupInfo;
ProcInfo : TProcessInformation;
.
.
if CreateProcess(PChar('c:\a.exe'),nil, nil, nil,true,
CREATE_NEW_PROCESS_GROUP+NORMAL_PRIORITY_CLASS,
nil, nil, startinfo, ProcInfo) then result:='ok' else result:='false';