jxdeng 发表于 2009-8-19 16:44:41

_FtpGetFile() 与_FtpPutFile 使用的问题

本帖最后由 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)
是成功的,而且传多个文件也是成功的。

字符串连接、参数传递都没有错。

jxdeng 发表于 2009-8-19 17:41:08

经调试下列写法可以下载成功,但是仍报错。
$Ftpp = _FtpGetFile($Conn, $remoteFile, $localFile,1,0)
页: [1]
查看完整版本: _FtpGetFile() 与_FtpPutFile 使用的问题