HOW TO: Change COM Port Mappings by Using the CHANGE PORT Command in Windows 2000 Terminal Services (320184)



The information in this article applies to:

  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional

This article was previously published under Q320184

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:

    change port com12=com2

  • To display a list of current port mappings, type the following line at a command prompt, and then press ENTER:

    change port /query

  • To delete the mapping for COM12, type the following line at a command prompt, and then press ENTER:

    change port /d com12

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

Modification Type:MajorLast Reviewed:11/20/2003
Keywords:kbhowto kbHOWTOmaster KB320184 kbAudITPro