change port
Lists or changes the COM port mappings to be compatible with MS-DOS applications. Windows commands reference
On Windows
Windows
Lists or changes the COM port mappings to be compatible with MS-DOS applications. NOTE: To find out what's new in the latest version, see What's New in Remote Desktop Services in Windows Server.
change port [<portX>=<portY>| /d <portX> | /query]
To map COM12 to COM1 for use by an MS-DOS-based application, type
change port com12=com1IdentifyTo display the current port mappings, type
change port /queryIdentify/queryDisplays the current port mappings. Windows commands reference<portX>=<portY>Maps COM <portX> to <portY>/d <portX>Deletes the mapping for COM <portX>/queryDisplays the current port mappings./?Displays help at the command prompt.