本帖最后由 ticket 于 2015-9-7 11:11 编辑
各个请帮帮我~~~,谢谢~
找文和测试都没成功
要如何编写!!
myfile.ini的内容:[MAC]
00-1E-8C-10-F6-7F=ON
00-22-AA-C9-5B-26=ON
00-08-9B-BE-33-A9=ON
00-40-01-30-B5-DD=ON
[MAC1]
00-1E-8C-10-F6-7F=ON
00-22-AA-C9-5B-26=ON
00-40-01-30-B5-DD=ON
比较后结果是:
00-08-9B-BE-33-A9=ON
如下的思路对吗?
A1[2]比较[B1,B2,B3]
A2[2]比较[B1,B2,B3]
A3[2]比较[B1,B2,B3]
A4[2]比较[B1,B2,B3]
$MAC=IniReadSection(@ScriptDir & "\myfile.ini", "mac" )
$game1= $MAC[1][0]
While 1
$MAC1=IniReadSection(@ScriptDir & "\myfile.ini", "mac1" )
For $x=1 To $MAC1[0][0]
$game2= $MAC1[$x][0]
;MsgBox(0,"",$MAC1[$x][0])
Dim $_tmp=StringSplit($game2,"")
For $x=1 To $_tmp[0]
If $_tmp[$x]="" Then ContinueLoop
$game1a=StringReplace($game1,$_tmp[$x],"")
Next
MsgBox(0,"",$game1a)
Next
WEnd
|