Na spouštění znám dvě možnosti, takto:
- uses Shellapi;
procedure TForm1.test;
var
spust : string;
begin
Spust := 'c:\pokus.exe';
ShellExecute(GetDesktopWindow(), 'open', PChar(Spust), nil, nil, SW_SHOWNORMAL);
end;
a takto :
- procedure TForm1.test;
var
spust : string;
begin
Spust := 'c:\pokus.exe';
WinExec(PChar(Spust),0);
end;






Odpověď s citací