ip为221.199.129.23 e盘下面有一个123.txt文件要下载下来 以此举例
回答:
最佳答案 假定221.199.129.23服务器上已经建立了FTP服务,用户名为test33密码为p@ssw0rd,且此用户的主目录为E:\。C:\>ftp
ftp>open 221.199.129.33
Microsoft FTP Service
Username: test33
Password: p@ssw0rd
ftp>bin
ftp>get 123.txt
ftp>bye刚才在网上查了这个方法,前面几步都没问题,但是到Password时就怎么也输不进去东西331 User name okay, need password
Password:
530 Not logged in.
Login failed.然后敲回车,就出现530问题了,这是怎么回事啊?

解决方案 »

  1.   

    可以看看的
    http://blog.csdn.net/sheshou2/archive/2009/10/28/4737653.aspx
      

  2.   

    使用ftpwebrequest下载文件
    FTP
      

  3.   


    在浏览器栏中输入
    ftp://test33:p@[email protected]
      

  4.   

    问题出在密码上。。p@ssw0rd 其中的@被视作分隔符认为你的服务器是[email protected] 
      

  5.   

    用ftp命令时,输入password不会回显(也就是说输入是有效的,只不过屏幕不显示),所以尽管输入密码好了,只要输对了,就能登进去。在浏览器地址栏输入时,如果密码中有特殊字符,要用编码形式:
    ftp://test33:p%[email protected] 
      

  6.   

    这两种我都试过了,不好使。第二种只是弹出一个让输入用户名和密码的对话框,输入之后也登不上去。密码能肯定是正确的,因为在web.config文件中ConnectionString就是用的那个连接字符串,就可以运行
    那会是哪里的问题呢?
      

  7.   

    去下载一个cuteftpZH工具连接上轻松解决,找到目录只要右键就可以下载了还可以自己编写代码下载
    public static void FileDownload(string FileName) //fileName为虚拟路径

    String FullFileName = System.Web.HttpContext.Current.Server.MapPath(FileName); 
    FileInfo DownloadFile = new FileInfo(FullFileName); 
    System.Web.HttpContext.Current.Response.Clear(); 
    System.Web.HttpContext.Current.Response.ClearHeaders(); 
    System.Web.HttpContext.Current.Response.Buffer = false; 
    System.Web.HttpContext.Current.Response.ContentType = "application/octet-stream"; 
    System.Web.HttpContext.Current.Response.AppendHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(DownloadFile.FullName, System.Text.Encoding.UTF8)); 
    System.Web.HttpContext.Current.Response.AppendHeader("Content-Length", DownloadFile.Length.ToString()); 
    System.Web.HttpContext.Current.Response.WriteFile(DownloadFile.FullName); 
    System.Web.HttpContext.Current.Response.Flush(); 
    System.Web.HttpContext.Current.Response.End(); 

    下载,直接调用方法
      

  8.   

    connectionstring是数据库的连接串,你确定服务器上的ftp开了吗?
    用 telnet 221.199.129.33 看看有没有反应?
      

  9.   

    C:>telnet 221.199.129.33 21