http://www.codeproject.com/dotnet/dotnetftp.asp?target=ftp

解决方案 »

  1.   

    copy 本地文件路径 \\目的ip\d$(盘符)\路径 "密码" /user:用户名
      

  2.   

    我是要建立空连接
    比如:
    net use \\xxx.xxx.xxx.xxx\ipc$ "password" /user:administrator
    copy file.txt \\xxx.xxx.xxx.xxx\admin$
    net use * /delete /yes
    这样的命令,能用C#完成么????
      

  3.   

    可以的
    using System.Diagnostics;
    -------------------------------Process proc = new Process(); proc.StartInfo.FileName = @"ping.exe"; proc.StartInfo.Arguments = "www.sina.com.cn"; 
    proc.StartInfo.UseShellExecute = false;
    proc.StartInfo.RedirectStandardOutput = true;
    proc.Start(); string output = proc.StandardOutput.ReadToEnd();MessageBox.Show(output);MessageBox.Show((proc.ExitCode).ToString());ms-help://MS.VSCC/MS.MSDNVS.2052/cpref/html/frlrfsystemdiagnosticsprocessclassstandardoutputtopic.htm