SUMMARY
This step-by-step article describes how to map COM ports for compatibility with MS-DOS-based programs by using the
change port command in Windows 2000 Terminal Services.
You can use the
change port command to display or change COM port mappings for compatibility with MS-DOS-based programs. Most MS-DOS-based programs support only serial ports COM1 through COM4. You can use the
change port command to map a serial port to a different port number so that MS-DOS-based programs can access that serial port.
Note that COM port mappings apply only to the current session. If you log off and then log back on, you must use the
change port command to map the COM port again.
back to the top
Description of the CHANGE PORT Command
The
change port command uses the following syntax:
change port portx=porty [/d portx] /query
The parameters and switches that are used by the
change port command are:
- portx=porty: Use these parameters to map COM port x to COM port y.
- /d portx: Use this switch to delete the mapping for COM port x.
- /query: Use this switch to display a list of current port mappings for the current session.
back to the top
Examples
These are examples of how to use the
change port command to change and display COM port mappings:
- To map COM12 to COM2, type the following line at a command prompt, and then press ENTER:
- To display a list of current port mappings, type the following line at a command prompt, and then press ENTER:
- To delete the mapping for COM12, type the following line at a command prompt, and then press ENTER:
back to the top
REFERENCES
For more information about the
change port command, visit the following Microsoft Web site:
For more information about Windows 2000 Terminal Services, see the Terminal Services Online Documentation at the following Microsoft Web site:
back to the top