找回密码
 加入
搜索
查看: 1418|回复: 0

关于FTP的问题

[复制链接]
发表于 2009-9-12 20:35:29 | 显示全部楼层 |阅读模式
Au3的版本:v3.3.1.1
编写了一个修改FTP密码的脚本,语法检查通过,但是无法登录到FTP服务器,不知是什么原因,请高手提明错误的原因。
#include <FTPEx.au3>
dim $server,$username,$oldpass,$newpass,$command

$server=inputbox("服务器地址","请输入你的FTP服务器地址或IP" & @CRLF &"示例:ftp.abc.com","ftp.abc.com")
$username=inputbox("用户名","请输入你的FTP用户名,示例:rj307102")
$oldpass=inputbox("旧密码","请输入你FTP用户的旧密码","1","*")
$newpass=inputbox("新密码","请输入你FTP用户的新密码","1","*")
$command= "quote site pswd " & $oldpass & "  " & $newpass

dim $open ,$conn,$ftpcommand,$ftpc
$Open = _FTP_Open('MyFTP Control')
if @error =0 then msgbox(0,"错误","打开不正确")
$Conn = _FTP_Connect($Open, $server, $username, $oldpass)
if @error =0 then msgbox(0,"错误","密码不正确")
$ftpcommand=_FTP_Command($conn,$command)

$Ftpc =  _FTP_Close($Open)
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

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

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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