the whole script is very big so i have included a small section that is causing the problems

;****************************************
;** Connect GroupGroupDrives to Drives *
;****************************************

Function COnnectGroupDrives()

CALL "\\ghclc-file\NETLOGON\main-group-drives.KIX"

Progress( "Connecting Group Drives:")

DbgMessage ("Info","Connecting group drive success ")

EndFunction


;*************************************************************************
;***********************************************************************

;**
;****************************************
;** Connect Deptartment Drives *
;****************************************

Function COnnectdeptartmentDrives()

CALL "\\ghclc-file\NETLOGON\deptartment-Drives.kix"

Progress( "Connecting Department Drives")


Progress( "Connecting Department finished")

endfunction
;***********************************************************************
;***********************************************************************

this is the section that is causing the window to open which looks no diffrent to any of the other sections
;**** printer setup ****

Function Installprinters()


CALL "\\ghclc-file\NETLOGON\clc_printers.kix"

Progress( "Installing printer Please wait")

$rc=DbgMessage ("Info","CLC printers")


EndFunction

Paul