Foxtable(狐表)用户栏目专家坐堂 → FTP上传和下载数据出现错误500提示


  共有9183人关注过本帖平板打印复制链接

主题:FTP上传和下载数据出现错误500提示

帅哥哟,离线,有人找我吗?
kevin
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:小狐 帖子:359 积分:3403 威望:0 精华:0 注册:2011/8/2 20:53:00
FTP上传和下载数据出现错误500提示  发帖心情 Post By:2012/3/11 14:54:00 [只看该作者]

Dim ftp1 As new ftpclient
ftp1.host="s138.288idc.com:2121"
ftp1.Account = "kevin"
ftp1.password = "123456"
ftp1.TimeOut = 30000
If ftp1.DirectoryExists("/db/gb") = False Then '如果不存在Data目录
    ftp1.MakeDir("/db/gb") '则创建Data目录
End If
ftp1.upload("c:\db\gb\kku.mdb","/db/gb/kku.mdb",True)
以上是上传数据到FTP空间,可以正常使用

而当我设置下载FTP空间里的数据时,代码如下:
Dim ftp1 As new ftpclient
ftp1.host="s138.288idc.com:2121"
ftp1.Account = "kevin"
ftp1.password = "123456"
ftp1.TimeOut = 30000

If ftp1.FileExists("/db/gb/kku.mdb") = False Then
    output.Show("文件不存在...")
Else
    ftp1.Download("/db/gb/kku.mdb","d:\kku.mdb",True)
    output.Show("Done")
End If

却提示:System.Net.WebException;远程服务器返回错误:(500)语法错误,无法识别命令...

求助!!!


 回到顶部