
Zitat von
haentschman:
ShellExecute(Application.Handle,'open',PChar(TempDatei),NIL,NIL,SW_SHOWNORMAL);
Gerne so benutzt, aber falsch!
ShellExecute(Application.Handle,nil,PChar(TempDatei),NIL,NIL,SW_SHOWNORMAL);
Mit der Übergabe des Parameters open wird die Anwendung gestartet, die unter shell/open/command steht. Mit nil die Standardanwendung.