iori2882 发表于 2011-9-29 11:25:05

_FTP_FileGet就是运行不成功(已解决)

本帖最后由 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服务器没问题的

menfan1 发表于 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)

iori2882 发表于 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 http://www.autoitx.com/images/common/back.gif
谢谢 明白了~前面_FTP_Open 和_FTP_FileOpen弄迷糊了 谢谢你了~

mammon 发表于 2012-10-19 11:59:37

我用_FTP_FileGet也犯了个错,源文件目录写成/软件/qwer.txt
页: [1]
查看完整版本: _FTP_FileGet就是运行不成功(已解决)