Autor Beitrag
saxe66
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 104



BeitragVerfasst: Di 04.03.03 16:03 
Kann mir bitte jemand einen Tip geben, wie ich ein mittels WinExec aufgerufenes DOS-Programm wieder komplett schließen kann ?
Das Programm selber wird zwar per Quit beendet, im Taskmanager ist jedoch noch eine WinOldApp zu sehen, bzw. bleibt das beendete Fenster der Dos-App sichtbar.

Vielen Dank ...
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Mi 05.03.03 09:25 
Hi,

mit WinExec wirst du Pech haben, aber mir CreateProcess müsste es gehen. Dann kannst du mit WaitforSingleObject auf das Beenden der Anwendung warten oder mit SendMessage zum Beenden zwingen.

AXMD
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mi 05.03.03 10:00 
WinExec solltest Du so wie so nicht mehr benutzen.

Schau Dir mal folgenden FAQ-Beitrag an: ...ein Programm starten?!

Gruß
TINO