I understan what an array is but I don't understand how to set them.
I'm trying to take the info from a .dat file and set each line as part of the array.
code:
Computer1
Computer2
Computer3
Computer4
This is the section in my script where I want to set the array. It's marked with the arrow.
code:
$SelectedDomain = $DomainBox.Text
shell '%comspec% /c net view /domain:$SelectedDomain | Find /i "\\" > Domain.dat'
$nul = open (2,Domain.dat,2)
$Domain = Readline(2)
Do
Select
Case Substr($Domain,1,12) = ""
$= $Form.MsgBox("Could not find $SelectedDomain Domain", "Domain not found")
$Nul = Close(2)
Del Domain.dat
Exit
Case Substr($Domain,1,2) = "\\"
$CompListBox.Additem (Rtrim(Substr($Domain,3,)))
(Rtrim(Substr($Domain,3,)));<---------------------------------------------------------------Add this to an array
Case 1
EndSelect
$Domain = Readline(2)
Until $Domain = ""
$Nul = Close(2)
Del Domain.dat
Thanks