I have a program that is written in C++ and uses CreateProcess to open Dos programs that use the COm ports. Well the only way I can get this to work is by calling a Batch file from CreateProcess that opens the Dos program from the Batch File. One MAJOR problem I found was that the com port stays open after I closed the Dos program. I have check "Close on Exit" in the options and have even tried to put COM1AutoAssign=2 in the Windows 95\98 system.ini file. This doesn't work either. How can I close the com port once I have closed the Dos program??