If you are using a MS-DOS program in a Terminal Services session, you may need to change the serial COM port mapping.
You can use the change port command, which can change COM port mapping for the current session. The syntax is:
<b>portx=porty</b> Map port x to port y.
<b>/D portx</b> Delete mapping for port x.
<b>/QUERY</b> Display current mapping ports.