回复 2# user3000 [ConfigMgr.dll]
pathfrmbin=ConfigMgr.dll
md5=2EACDD6F552278CADAE348A2EA669114
filedate=2012-01-06 15:58:17
forcedpath=
[P2PConfig.xml]
pathfrmbin=DNAService\P2PConfig.xml
md5=
filedate=2012-01-05 23:49:53
forcedpath=
[p2pserver.exe]
pathfrmbin=DNAService\p2pserver.exe
md5=
filedate=2011-08-09 09:50:41
forcedpath=
[SoftUpdate.exe]
pathfrmbin=DNAService\SoftUpdate.exe
md5=B20E7C54FBCED5F5EFD9ABF0C262896D
filedate=2012-01-06 18:34:53
forcedpath=
Func _IniRead($sText, $section, $Key, $Default)
;(?<=^|[\r\n])(?:\[SoftUpdate\.exe\])(?s).+?md5=([^\r\n]+).+
;\[P2PConfig.xml\](?s).+?filedate=([^\r\n]+)
Local $iKey = StringRegExp($sText, '\[' & $section & '\](?s).+?' & $Key & '=([^\r\n]+)', 3)
If @error Then Return $Default
Return $iKey[0]
EndFunc ;==>_IniRead
_IniRead($sFile_List, p2pserver.exe', 'md5', '')
这样读到的是[SoftUpdate.exe]里的md5,请帮我看看 |