Joacim,

I am also using this code and it works fantastic !
Ecxept I have some other problem:
- When the Dos program is running and some other (windows) program is started, then the (shelled) Dos program is losing his focus and stops running. Is it possible the keep the Dos program running until it is ended ?
(I am using it to send a fax from the Dos commandline and redirect the output to a file)

with regards, Kars