I'm not sure what you mean exactly, so ignore this if it doesn't solve your problem. Are you looking for a way to wait until the program that you are starting (com2io2.exe) ends before continuing so that other windows in your mainline application don't pop up over it? If so, here is what I would do using your example above:<br><br> si.cb = sizeof(STARTUPINFO);<br> si.wShowWindow = SW_SHOW;<br> BOOL ret = CreateProcess (NULL, "c:\\com2io2.exe",NULL,NULL,FALSE,0,NULL,NULL,&si,&pi);<br> if(ret)<br> {<br> WaitForSingleObject(pi.hProcess,INFINITE); <br> CloseHandle(pi.hProcess);<br> CloseHandle(pi.hThread);<br> }<br><br>This way, the task (com2io2.exe) can do its job before the rest of your application goes on it's way...<br><br>Hope this helps!<br> <p>Pat Gleason<br><a href=mailto:gleason@megsinet.net>gleason@megsinet.net</a><br><a href= > </a><br>