本帖最后由 www8899 于 2022-1-20 08:45 编辑
Case $Button1
Local $time = TimerInit(), $type
Local $size = Round(InetGetSize("http://192.168.1.2:8080/wim/windows10.esd") / 1048576)
Local $hDownload = InetGet("http://192.168.1.2:8080/wim/windows10.esd", "D:\MHT\windows10.esd", 1, 1)
ProgressOn("xxxxxxxxxxxx", "正在下载Windows10系统", "0 %")
Do
Sleep(100)
$info = Round(InetGetInfo($hDownload, 0) / 1048576)
$jindu = Int($info / $size * 100)
ProgressSet($jindu, String($jindu) & " % 已经下载 " & String(Round($info)) & " MB")
Until InetGetInfo($hDownload, 2)
ProgressSet(100, "完成", "下载完成")
Sleep(100)
ProgressOff()
配置文件
[config]
ur1=http://192.168.1.2:8080/wim/windows10.esd;ur2=http://192.168.1.2:8080/wim/windows7.esd;
ur3=http://192.168.1.2:8080/wim/windows8.esd
依此类推
如果让AU3来读取这个配置文件的地址,再下载文件怎么写?
|