Changing to a new version is easy. If you know where the old kix32.exe and/or wkix32.exe is located (I bet its locally on each machine). Just download the new version and copy it over the old version.
!! WARNING !!
You current script will not work! As said above commands are used in your current script that are no longer supported by kix. The script should first be altered to work with the new version of kix.
This may also be the case on any other kixscripts you use. BE CAREFULL.
This could be a start of what your printer mapping script could look like. This is a very basic script to add printers based on the computer name.
It deletes all currently installed network printers before adding new ones.
Code:
;deleting all currently installed network printers
DelPrinterConnection("")
;map printers for classroom 604
;and set Laser604 as default printer
If InStr (@WKSTA, "604")
AddPrinterConnection ("\\server\Laser604")
SetDefaultPrinter ("\\server\Laser604")
AddPrinterConnection ("\\server\Colour604")
EndIf
;map printers for classroom 605
;and set Laser605 as default printer
If InStr (@WKSTA, "605")
AddPrinterConnection ("\\server\Laser605")
SetDefaultPrinter ("\\server\Laser605")
AddPrinterConnection ("\\server\Colour605")
EndIf
;map printers for classroom 705
;and set Colour705 as default printer
If InStr (@WKSTA, "705")
AddPrinterConnection ("\\server\Colour705")
SetDefaultPrinter ("\\server\Colour705")
EndIf
;map printers for classroom 706
;and set Colour706 as default printer
If InStr (@WKSTA, "706")
AddPrinterConnection ("\\server\Colour706")
SetDefaultPrinter ("\\server\Colour706")
EndIf
_________________________
Mart
- Chuck Norris once sold ebay to ebay on ebay.