Hello

I am now busy to make scripts with kixtart. I it quite good, only that I now have a problem with the coupling of printers in my departments in my company.

The company has been classified in deparments and each department has his own printer. In my script I give that each department must have his own printer.

When I do that I get a error.
My script is:

 Code:

; Printers toewijzen aan gebruikers per afdeling

; Printers voor Afdeling Inkoop
IF InOU("Afdeling Inkoop", 1)
	IF AddPrinterConnection ("\\176server\Afdeling Inkoop") = 0
		SetDefaultPrinter ("\\176server\Afdeling Inkoop")
IF InOU("Afdeling Inkoop", 1)
	IF AddPrinterConnection ("\\176server\Secretariat") = 0
	EndIf

; Printers voor Afdeling Verkoop
IF InOU("Afdeling Verkoop", 1)
	IF AddPrinterConnection ("\\176server\Afdeling Verkoop") = 0
		SetDefaultPrinter ("\\176server\Afdeling Verkoop")
IF InOU("Afdeling Inkoop", 1)
	IF AddPrinterConnection ("\\176server\Hoofd Administratie") = 0
	EndIf



What do I wrong, what must I do so that it well does.
I hope that you my can help.

Thanks!



Edited by MrYretix (2007-04-16 12:26 PM)
_________________________
Nice !!!!