找回密码
 加入
搜索
查看: 2488|回复: 1

_FtpGetFile() 与_FtpPutFile 使用的问题

[复制链接]
发表于 2009-8-19 16:44:41 | 显示全部楼层 |阅读模式
本帖最后由 jxdeng 于 2009-8-19 17:19 编辑

在使用ftp.au3的自定义函数进行上传下载时,_FtpPutFile 是成功的, 而_FtpGetFile() 就是不能成功,不知何故? 请教。
如:
下载代码
$remoteFile = '/deng.txt'
$localFile = 'D:\aaa\dengaa.txt'
$Ftpp = _FtpGetFile($Conn, $localFile, $remoteFile, 1, 0 )
就是不成功。运行报“autoit3.exe 遇到问题需要关闭” 错
===================

上传代码:
$remoteFile = $ufiles[$i]
$localFile =  $ulocalFiles[$i]
$Ftpp = _FtpPutFile($Conn, $localFile, $remoteFile)
是成功的,而且传多个文件也是成功的。

字符串连接、参数传递都没有错。
 楼主| 发表于 2009-8-19 17:41:08 | 显示全部楼层
经调试下列写法可以下载成功,但是仍报错。
$Ftpp = _FtpGetFile($Conn, $remoteFile, $localFile,1,0)
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-22 22:35 , Processed in 0.067877 second(s), 21 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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