找回密码
 加入
搜索
查看: 2062|回复: 3

[AU3基础] _FTP_FileGet就是运行不成功(已解决)

[复制链接]
发表于 2011-9-29 11:25:05 | 显示全部楼层 |阅读模式
本帖最后由 iori2882 于 2011-9-29 18:42 编辑

#Include <FTPEx.au3>
_FTP_FileGet($l_FTPSession, $s_RemoteFile, $s_LocalFile [, $fFailIfExists = False, [ $dwFlagsAndAttributes = 0 [, $l_Flags = 0 [, $l_Context = 0]]]])
参数

$l_FTPSession 由 _FTP_Connect() 返回的会话
$s_RemoteFile 远程文件路径.
$s_LocalFile 本地文件路径.
$fFailIfExists [可选参数] True: 不覆盖存在的文件(默认 = False).
$dwFlagsAndAttributes  [可选参数] 新文件的文件属性.
$l_Flags  [可选参数] as in _FTP_FileOpen().
$l_Context [可选参数] A variable that contains the application-defined value that associates this search with any application data.
This is only used if the application has already called _FTP_SetStatusCallback() to set up a status callback function.

============================================================

_FTP_FileGet
真的好用么?怎么测试都不成功
Dim $name = "admin"
Dim $password = "ioriyagami"
Dim $sever = "192.168.88.4"
Dim $open = _FTP_Open($sever)
Dim $lianjie = _FTP_Connect($open, $sever, $name, $password)
$ceshi=_FTP_FileGet($lianjie,"\软件\qwer.txt","c:\")
MsgBox(0,0,$ceshi)
$ceshi怎么返回都是0
我的FTP服务器没问题的
发表于 2011-9-29 13:14:44 | 显示全部楼层
$name = "admin"
$password = "ioriyagami"
$sever = "192.168.88.4"
$open = _FTP_Open("myftp")
$lianjie = _FTP_Connect($open, $sever, $name, $password)
$ceshi=_FTP_FileGet($lianjie,"\软件\qwer.txt","c:\qwer.txt")
MsgBox(0,0,$ceshi)
$Ftpc = _FTP_Close($Open)

评分

参与人数 1金钱 +20 收起 理由
iori2882 + 20

查看全部评分

 楼主| 发表于 2011-9-29 15:16:20 | 显示全部楼层
$name = "admin"
$password = "ioriyagami"
$sever = "192.168.88.4"
$open = _FTP_Open("myftp")
$li ...
menfan1 发表于 2011-9-29 13:14

谢谢 明白了~前面_FTP_Open 和  _FTP_FileOpen弄迷糊了 谢谢你了~
发表于 2012-10-19 11:59:37 | 显示全部楼层
我用_FTP_FileGet也犯了个错,源文件目录写成  /软件/qwer.txt
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-11-18 13:56 , Processed in 0.079365 second(s), 27 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表