Add new LPT Ports

[Autolink] Menu

Following is a sample REXX program to create additional LPT ports for the print spooler. This code is from a program called LPT49.cmd from the Keller Group (see http://www.cds-inc.com/techsprt/miscfxdl.html ).

(see also Get a list of all printers)

 
  call charout, 'Adding LPT4 through LPT9 to system ini '
  call RxFuncAdd 'SysIni', 'RexxUtil', 'SysIni'
  do i = 4 to 9
    call charout, '.'
    call SysIni 'SYSTEM', 'PM_SPOOLER_PORT', 'LPT' || i, ';' || '00'x
  end /* do i = 4 to 9 */
  say ' done.'

To use the ports in WinOS/2 also add the lines

 
LPT4:=
LPT5:=
LPT6:=
LPT7:=
LPT8:=
LPT9:=
LPT4.OS2=
LPT5.OS2=
LPT6.OS2=
LPT7.OS2=
LPT8.OS2=
LPT9.OS2=

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


[Back: Print to a file]
[Next: Add new COM Ports]