Select v1.6 Created by Jeff Pilant Usage: SELECT [/NB] | | FILE Where: is the name of a print queue or printer /NB selects no banner HELP this text RESET reset to login setup LPT set for no capturing of printers NONE set for no capturing of printers LOCAL set for no capturing of printers SHOW display capture status FILE set for capture to file the captured file must reside on the server With no arguments, select give a menu and allows you to set the timeout and choose queues for lpt2 and lpt3 as well. -------------------------------- Select is designed to let you choose a novell print queue for the lpt ports given a list of queues drawn from the server's bindery. After the list of queues are learned, Select adds 'NONE' for no queue capture. This system is designed to work with JRB's USERS.EXE. I add a field to his LOCATION.SRT file that contains the queue name and arguments to assign on login. The initial number (before the ':') of the file is optional as per the USERS. Select RESET will use this queue and arg list. If you give no arguments, select will prompt you with a list to pick from. Sample LOCATION.SRT: 00000000:000000000000 Server NONE 00000001:02608C42EC1A Console PC PRINTQ_0 00000001:02608C4BFBAE @Jeff Pilant Q_833/NB Select defaults to capturing lpt1, but if you bring up the menu, you can choose to affect lpt1, lpt2, or lpt3. Select sets a timeout of /TI=30, and also sets /NT (no tabs). The Select menu responds to Home, End, PgUp, PgDn, Up, Down, B, 1, 2, and 3. The arrows will wrap, the numbers select a printer port, and B will toggle banners. Pressing Return will select the highlighted queue and apply the banner state. Pressing Escape will exit and display the current capture status. Pressing F1 (Help) will exit and display the help screen. Pressing X, Alt-X, or Ctl-X will exit with no displays. The argument FILE on select's command line, will capture to a file with a timeout of 300. If your queue names start with 'Q_', for example Q_COLOR, then you can drom the 'Q_' and say select color. Select uses a INI file, [SELECT.INI] located in the same directory as itself. If this file doesn't exist, it is created. Currently, the following parameters are supported: DEBUG If the DEGUG parameter exists, it will print out any warnings and errors from the novell API. If it is not there, it will ignore expected errors and only print out errors I don't know about. [Basically any unknown error number.] SILENT If the SILENT parameter exists, select will only show the results of your actions. If it is not there, select will also show the command used to get your results. Since select is a shell for the capture command, it may be useful to see what command was used. NAME OFFSET=# In addition to the queue name, select also supports printer name selection. At our site, our printers are named with several words describing the printer. As I name each printer, I placed the last name of the nearest user at a certain fixed location within the printer's name. The parameter tells where that offset is. For example, from our server: "HP3 (873) Pilant" This tells anyone that the printer is a Hewlett Packard LaserJet III, it is in the department section refered to as 873, and the desk it is near is Pilant. I need to use "name offset=13" to match "Pilant". Notes: JRB = John Baird Lincoln University, NZ. USERS.EXE is part of JRB221A.ZIP [Lates version I know of] available on netlab2.usu.edu. Update history: 1.6 Created ini file Fixed display error [clipped last char if odd length] Added selection by printer name Clarified banner selection 1.5 Fixed comand line 'none' option 1.4 Added timout controll Fixed 'more' arrows 1.3 Added better arrow processing and lpt selection Improved display speed 1.2 Added file capture at /TI=300 1.1 Added retrieval of names for offline printers 1.0 Origional version