home bbs files messages ]

Just a sample of the Echomail archive

Cooperative anarchy at its finest, still active today. Darkrealms is the Zone 1 Hub.

   OS2      Fidonet International OS/2 Conference      3,371 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,584 of 3,371   
   Lars Erdmann to All   
   Re: Tool to create a new printer?   
   05 Jan 11 05:01:59   
   
   Firefox/4.0b8pre SeaMonkey/2.1b2pre   
   hCOK;N65>FJlj@O^CT1A^BL@[N4DY[3AA]aKE\??lSg]lH9BHPJ^]SkDWJI   
   .os2.programmer.tools:64   
   From: Lars Erdmann    
      
   Alex Taylor wrote:   
   > Is there a command-line utility out there which is capable of creating   
   > a new printer?   
   >   
   > That is, given a driver (e.g. ECUPS.DRV), model name (e.g. "Epson PX   
   > 101"), and output port (e.g. "CUPS4"), it will create both a queue   
   > and a WPS object?   
   >   
   > I'm trying to automate this process from a (REXX) program.   
   >   
   Have a look at the "Workplace Shell Programming Reference":   
   "WPPrinter" class has a bunch of setup keynames:   
   PRINTDRIVER   
   PORTNAME   
   QUEUENAME   
   QUEUEDRIVER   
      
   The "Model name" would most likely also be the title of the WPS object.   
      
   If you want to know the format of the strings to pass along, use regedit2.exe   
   -> HINI_SYSTEM_PROFILE -> PM_SPOOLER_DD   
                           -> PM_SPOOLER_PORT   
                           -> PM_SPOOLER_QUEUE_DD   
                           -> PM_SPOOLER_QUEUE   
                           -> PM_SPOOLER_QP   
      
   With a little trial and error you should be able to figure out the correct   
   strings for the setup keynames.   
      
   Example: PRINTDRIVER would be something like "ECUPS.Epson PX 101" and PORTNAME   
   would be "CUPS4".   
   For QUEUEDRIVER that would likely be "PMPRINT" (if you use the default queue   
   processor \OS2\DLL\PMPRINT.QPR)   
   What you specify as QUEUENAME will end up as a subdirectory created under   
   \var\spool. It's the place where   
   the spooled print jobs will be placed. For example QUEUENAME would be   
   "Epson_Px101".   
      
   See also all the other setup keywords. You will need to use additional ones to   
   achieve a "silent installation".   
      
      
   Lars   
      
   --- Internet Rex 2.31   
    * Origin: Arcor (1:261/20.999)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca