Version 2.1
Website:
http://www.solemnwarning.net/netprinters/
Copyright © 2008 Daniel Collins
NetPrinters is a utility for managing the networked printer connections stored in a user's profile on Windows workstations running Windows 2000 or newer. It can be passed printers via the command line, or in a NetPrinters script which allows setting up printers based on filters such as username and NetBIOS name.
The netprinters.exe program accepts the following arguments:
NetPrinters has a simple expression language which can be used when comparing strings, in its most basic usage it's just a case-insensitive string comparison function, but it also has support for several wildcard characters:
NetPrinters scripts are made from "blocks" of code, blocks of code contain control and filter directives, the control directives of a block are executed in order until a filter statement that evaluates false is encountered, then the rest of the block is skipped. Blocks of code are seperated by one or more blank lines, lines beginning with a # symbol are ignored as comments, but they will not act as block seperators.
Scripts may have UNIX, Windows or even Macintosh line endings as newline and return-carridge characters are stripped from the beginning and end of every line. Whitespace is also stripped from the beginning of the line and after the directive name, so you can have any number of spaces or tabs at the start of a line, or between the directive name and its argument(s).