举报
$sFilePath = @ScriptDir & "\aa.ini" ; 读取 ini 文件中 '常规' 字段. 这将返回一个 2 维数组. Local $aArray = IniReadSection($sFilePath, "0") Local $aray = "a04" ; 检查是否发生错误. If Not @error Then ; 枚举显示数组中关键字及其各自的值. For $i = 1 To $aArray[0][0] MsgBox(0, "", "关键字: " & $aArray[$i][0] & @CRLF & "值: " & $aArray[$i][1]) If $aray = $aArray[$i][0] Then MsgBox(0, "", "想打开文件--wg2.bat") ; run (@DesktopDir&"\wg2.bat") Else ;exit EndIf Next EndIf
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-4-2 18:54 , Processed in 0.098613 second(s), 23 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2025 Discuz! Team.