Hi
I'm using the WinExec command
PCommand := PChar(Command);
WinExec(PCommand,SW_HIDE);
and when the program is running under "Windows 98" every time I use it, it stays open and can be close only by close program session (ctrl + alt + Delete)
so my questions are how do I close the WinExec command and how can I tell when it has stopped so I can continue with my program.
I'm using the WinExec command
PCommand := PChar(Command);
WinExec(PCommand,SW_HIDE);
and when the program is running under "Windows 98" every time I use it, it stays open and can be close only by close program session (ctrl + alt + Delete)
so my questions are how do I close the WinExec command and how can I tell when it has stopped so I can continue with my program.