Add new COM Ports

[Autolink] Menu

Following is a sample REXX program to create additional COM ports for the print spooler. (based on Add new LPT Ports found in a public news group)

 
  call charout, 'Adding COM5 through COM8 to system ini '
  call RxFuncAdd 'SysIni', 'RexxUtil', 'SysIni'

  do i = 5 to 8
    call charout, '.'
    call SysIni 'SYSTEM', 'PM_SPOOLER_PORT', 'COM' || i, ';' || '00'x
  end /* do i = 5 to 8 */
  say ' done.'

It maybe(!) possible to use the ports in WinOS/2 also if you add the lines

 
COM5:=9600,n,8,1,x
COM6:=9600,n,8,1,x
COM7:=9600,n,8,1,x
COM8:=9600,n,8,1,x
COM9:=9600,n,8,1,x

to the section [ports] of the file \OS2\MDOS\WINOS2\WIN.INI.


[Back: Add new LPT Ports]
[Next: Add new sound schemes in WARP 4]