当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

    摘要: 怎么该登陆密码啊,原来的那个忒难记了 ......
    摘要: 我用的是 windows2000 professional 的操作系统.装sql server 时候提示我,只能安装它的客户端程序. 是否在不换操作系统的情况下,安装sql server 服务器程序. 谢谢! ......


ftp的源程序,欢迎指教

以下是我的部分ftp源程序,可以实现客户端到服务器的上传,可是只能实现某个目录下的一个文件的上传,有谁能实现将客户端整个目录下的所有文件上传到服务器的?  
  private   void   button1_Click(object   sender,   System.EventArgs   e)  
  {  
   
   
  FTPFactory   ff   =   new   FTPFactory();  
  ff.setDebug(true);  
  ff.setRemoteHost("172.22.68.4");  
  ff.setRemoteUser("webipp");  
  ff.setRemotePass("");  
  ff.login();  
  ff.chdir("bt");  
   
  string[]   fileNames   =   ff.getFileList("*.*");  
  for(int   i=0;i   <   fileNames.Length;i++)    
  {  
  Console.WriteLine(fileNames[i]);  
  }  
   
  ff.setBinaryMode(true);  
  if(textBox1.Text=="")  
  {  
  MessageBox.Show("文件名不能为空!请重新输入文件名。");  
  return;  
  }  
  ff.upload(textBox1.Text);  
  ff.close();  
   
  }  
   
  public   FTPFactory()  
  {  
   
  remoteHost     =   "172.22.68.4";  
  remotePath     =   ".";  
  remoteUser     =   "webipp";  
  remotePass     =   "   ";  
  remotePort     =   21;  
  debug           =   false;  
  logined         =   false;  
   
  }  
   
  public   void   upload(string   fileName)  
  {  
  upload(fileName,false);  
  }

NO.1   作者: cnhgj

foreach(string   Fn   in   Directory.GetFiles(@"c:\abc","*.*"))  
  {  
  if   (File.Exists(Fn))  
  ff.upload(Fn);  
  }  
 


 ·memset函数的用法及例子    »显示摘要«
    摘要: 哪位大侠能给一个在linux下编译通过的说明memset函数用法的例子? ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE