Originally Posted By: Richard H.
Be carefull with @ERROR and @SERROR - if you do not save them and you call another function their values will be reset.


This is exactly what I'm running into at the moment.

Here is what I have (pruning for simplicity):

 Code:
if ingroup ("Acute")
$rc = use m: "\\server12\acute12$" ; Changed to error out
endif
$computerprt = left (@wksta, 3)

select 
	case $computerprt = "ACU"
		$rc = AddPrinterConnection ("\\server07\main12") ; Changed to Error
endselect


I'm only getting 1 line of error in the txt file. Which I'm assuming is the incorrect printer mapping, not for both.

Thoughts? Am I going to need a function for mapping drives / printers?