ohne chdir sieht es so aus:
Delphi-Quellcode:
uses ...ShellAPI;
-----------------
if (ShellExecute(Application.Handle,PAnsiChar('open'),PAnsiChar('FLASHPOINTRESISTANCE.EXE'),PAnsiChar('-nosplash -nomap' +isChecked),PChar(GetRegData),SW_ShowNormal)<32) then
Mprot.Lines.Add('Error while starting game!')
else
Mprot.Lines.Add('starting game...');