Another problem arose.

I have the following printers

\\mrh-01\q-mis2
\\mrh-01\q-mis2-color
\\mrh-01\q-research-color

Assigned to the following printer groups
D01_q-mis2
A01_q-mis2-color
A01_q-research-color

Using the script posted above, if I set the color printer to default in my computer to test if the script correctly catches the wrong printer is default and changes to q-mis2, it fails to do so.

However, if I set it in my computer to q-research-color, it correctly sets the default back to q-mis2.

Is there a problem because the two mis2 printers start with the same name and have another dash in them? It isn't the length.

q-mis2
q-mis2-color

tjcarst

[ 27. October 2003, 18:03: Message edited by: tjcarst ]