回复 4# komaau3
送个后台保存为mht文件的UDF给你们:_INetGetMHT('http://www.autoitx.com/forum.php?mod=viewthread&tid=30540&rpid=401645&ordertype=0&page=1#pid401645', @ScriptDir&'\1.mht')
Func _INetGetMHT($Url, $file)
Local $msg = ObjCreate("CDO.Message")
If @error Then Return False
Local $ado = ObjCreate("ADODB.Stream")
If @error Then Return False
With $ado
.Type = 2
.Charset = "US-ASCII"
.Open
EndWith
$msg.CreateMHTMLBody($Url, 0)
$msg.DataSource.SaveToObject($ado, "_Stream")
FileDelete($file)
$ado.SaveToFile($file, 1)
If @error Then Return False
$msg = ""
$ado = ""
Return True
EndFunc ;==>_INetGetMHT
|