In article <e4556b25-c388-424b-925e-
>,
says...
[ starting an external program asynchronously ... ]
> Without changing my program to a multi-threaded program, I am not sure
> if it is recommended to execute the email.exe using system + at
> command.
>
> I mean if it is scalable and reliable.
There's no particular reason is shouldn't work, but it's not what I'd
recommend -- I'd probably call CreateProcess, though you could consider
ShellExecute, ShellExecuteEx, WinExec, etc. Using these you can fairly
easily detect a truly catastrophic failure, such as the executable
you're trying to use not existing, while still avoiding waiting for it
to finish executing or anything like that.
--
Later,
Jerry.
The universe is a figment of its own imagination.