Just a second here -

This will not work either:
Code:

;$=AddPrinter("10.231.144.240","HP LaserJet 1300n","\\skoledomene\drivere\hp laserjet 1300\win2000_xp\1300m6.inf",
"HP LaserJet 1300n paa Lo skole",,1)



Per KiXtart documentation, ";" is a comment and will not be executed.

You need to change this to -
Code:

$=AddPrinter("10.231.144.240","HP LaserJet 1300n","\\skoledomene\drivere\hp laserjet 1300\win2000_xp\1300m6.inf",
"HP LaserJet 1300n paa Lo skole",,1)



Also, you should debug your code to see where it is not working.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's