本帖最后由 lixiaolong 于 2011-3-4 21:25 编辑
1.Global $inipath = @ScriptDir & "\config.dat"
$file = @SystemDir & "\UDO.log"
Dim $Name[100]
$s = 0
For $i = 1 To 100
$Name[$s] = IniRead($inipath, "配置信息", "禁止列表" & $i, "")
If Not $Name[$s] Then ExitLoop
If StringInStr(FileRead($file), $Name[$s]) Then
MsgBox(0, $Name[$s], "Found")
Else
MsgBox(0, $Name[$s], "Not Found")
EndIf
$s += 1
Next
[配置信息]
禁止列表1=可是
禁止列表2=找对
禁止列表3=021
2.$inipath = @ScriptDir & "\config.dat"
$file = @SystemDir & "\UDO.log"
$Name = IniRead($inipath, "配置信息", "禁止列表", "")
$Lsit = StringSplit($Name, ',')
For $i = 1 To UBound($Lsit) - 1
If StringInStr(FileRead($file), $Lsit[$i]) Then
MsgBox(0, $Lsit[$i], "Found")
Else
MsgBox(0, $Lsit[$i], "Not Found")
EndIf
Next
|