本帖最后由 shqf 于 2013-2-4 13:23 编辑 #include <Array.au3>
Global $zdjywbwd = "D:\TradeBlazerV4\ctporder" & @YEAR & @MON & @MDAY & "_8090_8170709.txt"
$Text = FileRead($zdjywbwd)
While 1
Global $nText = FileRead($zdjywbwd)
If $Text <> $nText Then
$var = StringReplace($nText, $Text, "")
$array = StringRegExp($var, "8170709 (.+) \d+\.", 3)
$Subject =$array[0]
_INetSmtpMailCom($SmtpServer, $FromName, $FromAddress, $ToAddress, $Subject, $Body, $AttachFiles, $CcAddress, $BccAddress, $Importance, $Username, $Password, $IPPort, $ssl)
$Text = $nText
EndIf
WEnd
|