Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

How can I change a COM port via CMD?


  • Please log in to reply
2 replies to this topic

#1
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 10,136 posts
  • Joined 28-April 06
  • OS:Windows 7 x86
  • Country: Country Flag

Donator

I am trying to determine how to change a COM port via CMD or other potential methods. I have tried using change port/chgport but it returns to me an error:

 

Unable to create mapping for port COM1. Error Code = 0x2

 

chgport COM1=COM2

 

This is the /query output:

 

AUX = \DosDevice\COM1
COM1 = \Device\Serial0

 

Am I using this command incorrectly? I am logged in directly to the PC, physical not VM.


MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
tpxmsfn1_zps393339c1.jpg


How to remove advertisement from MSFN

#2
Yzöwl

Yzöwl

    Wise Owl

  • Super Moderator
  • 4,596 posts
  • Joined 13-October 04
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

I'm not sure of your intention but it appears to me that you are trying to map COM2, (which doesn't exist in your query), to COM1 (which already exists).

 

I thought that the idea of this command was to be able to utilise ports other than COM1, COM2, COM3 and COM4 because they were the only ones supported by MS-DOS programs.

 

CHGPORT COM6=COM1 maps COM6 to COM1 such that COM6 can be utilised by the DOS program as COM1.



#3
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 10,136 posts
  • Joined 28-April 06
  • OS:Windows 7 x86
  • Country: Country Flag

Donator

Oh so I had it backwards! Duh :angel


MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
tpxmsfn1_zps393339c1.jpg




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users