I have tried adding in the command but without any joy, below is a snippet of the map netwrok drives code. Can you suggest where i should put this to kill off the second screen siplaying a 0

Code:

;==================================================================================================
;Map network drives
;==================================================================================================

Function MapDrives()
sleep 1
$RadioButton1.Value = 1
sleep 1
$RadioButton1.Value = 0
$RadioButton1.Enabled = 0
$RadioButton2.Value = 1

;DELETE ANY PREVIOUS MAPPINGS
Use "*" /DELETE

;Default Drives
If InGroup ("Domain Users")
USE H: @HOMESHR
USE M: "\\JTFS01-C\MPR"
USE P: "\\JTFS01-C\APPS"
USE Q: "\\JTFS01-C\DOCS"
USE S: "\\JTFS01-C\SHARED"
Endif

;Group Drives
If InGroup ("Domain Admins")
USE Z: "\\JTDC01\C$"
Endif

;User Drives
If @userid = "James"
USE Y: "\\JTDC02\C$"
Endif

;$_ = execute($Form.DoEvents(1))
execute($Form.DoEvents(1))
$ScriptProgressBar.PerformStep()
$RadioButton2.Value = 0
$RadioButton2.Enabled = 0
If @error = 0
$Label17.Text = ""
$Label17.Forecolor = 0,0,0
else
$Label17.Text = "Errors found when connecting network drives"
$Label17.Forecolor = 255,0,0
endif
sleep 4
EndFunction