Yes it will work, but you should enclose the group name and IP addresses in speech marks (they are strings) and as they are mutually exclusive you should used "CASE / SELECT" rather than a lot of "IF /ENDIFS" - it will be neater and less prone to coding errors.

You should also cater for multi-adaptor scenarios unless you can guarantee that there will only ever be one.

You might also want to include some error checking.

Finally, you may want to use an INI file as a cross reference for the site / printer selection. This will save you having to edit the script for additions and changes.


Edited by Richard H. (2005-08-09 04:36 PM)