![[Toc]](../../toc.gif)
![[Index]](/idx.gif)
Add new LPT Ports
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/miscfxdlhref="/docs/rxtt36/.php ).
(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.
Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs