Gah! So much to learn! [Razz]

The dfltpntr.kix script reads:

code:
; Searching for new printers
$Temp = SUBSTR($PrinterName,3,999)
$PrinterServer = SUBSTR($Temp,1,INSTR($TEMP,"\")-1)
$PrinterShare = SUBSTR($Temp,INSTR($TEMP,"\")+1,999)
$RegKey = ",,"+$PrinterServer+","+$PrinterShare

; Setting new printer as default
$Index = 0
WHILE @ERROR = 0
$ValueName = ENUMKEY( "HKEY_CURRENT_USER\Printers\Connections" , $Index )
If @ERROR = 0
IF INSTR($Valuename,$RegKey) <> 0
$PrinterType = SUBSTR($ValueName,INSTR($ValueName," - "),999)
$DeviceName = "\\"+$PrinterServer+"\"+$PrinterShare+$PrinterType+",winspool,Ne0"+$Index+":"
WRITEVALUE ("HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows","Device",$DeviceName,"REG_SZ")
ENDIF
ENDIF
$Index = $Index + 1
LOOP

Howard suggested putting this into the other script. Would it work as a straight cut and paste thing? Or is there a better way to do it still?