Thanks, Howard.
One last question on this topic for me:
I am using a bit of code that checks to see if the default printer is set (after adding printers). I want it to set the default printer if it isn't correctly set, but already installed - wrong printer set default. If it is not mapped, it does correctly add and set as default.
I am using PriMapstate.udf for this and thought that it used to work, but I must have changed something.
Any idea what I have wrong with this bit?
code:
if PriMapState("\\" + $defprinter)<>2
$nul=SetDefaultPrinter("\\" + $defprinter)
? "Status - Default Printer set \\" + $defprinter
? @serror
endif