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)语法错误,无法识别命令...
求助!!!