回复 1# bjp_zhj
只要改那个runname,改为其它的就行了,奇怪得很。$filename = @ScriptDir&"\download.ini";下载参数文件
$key1 = IniRead($filename, "下载开关", "kye", "NotFound")
$Key2= IniRead($filename, "下载路径", "url", "NotFound")
$Key3= IniRead($filename, "下载文件名", "filename", "NotFound")
$key4 = IniRead($filename, "run-name", "run-name", "NotFound")
MsgBox(0, "4", $key4)
MsgBox(0, "3", $key3)
MsgBox(0, "2", $key2)
MsgBox(0, "1", $key1)
----------------------------------------------------------------------------------------
download.ini
----------------------------------------------------------------------------------------
[下载开关]
kye=1
;;下载开关,kye=0时不执行后续的下载任务,kye=1时可以执行
[下载路径]
url=ftp://Anonymous@192.168.1.100/
;;提供下载的ftp地址
[下载文件名]
filename=20101125.exe
;;文件名列表,提供下载的文件名
[run-name]
run-name=20101125.exe
|