不知是不是这样(没试):$Isa = ObjCreate("FPC.Root")
$CurArray = $Isa.GetContainingArray
$RuleElements = $CurArray.RuleElements
$DomainNameSets = $RuleElements.DomainNameSets
$DomainNameSet = $DomainNameSets.Item("Domains")
$FileSys = ObjCreate("Scripting.FileSystemObject")
$DomainsFile = $FileSys.OpenTextFile("domains.txt", 1)
For $i = 1 to $DomainNameSet.Count
$DomainNameSet.Remove 1
Next
While 1
$DomainNameSet.Add $DomainsFile.ReadLine
If $DomainsFile.AtEndOfStream = True Then ExitLoop
Wend
$CurArray.Save
|