01 2014 档案

摘要:/// /// 根据年月日计算星期几 /// /// 年 /// 月 /// 日 /// public static string CaculateWeekDay(int y, int m, int d) { if (m == 1) m = 13; if (m == 2) m = 14; int week = (d + 2 * m + 3 * (m + 1) / 5 + y + y / 4 - y / 10... 阅读全文
posted @ 2014-01-20 14:28 贝小贝 阅读(1126) 评论(4) 推荐(0)
摘要:从网上找到的非常好用的模拟ftp管理代码,整理了一下,希望对需要的人有帮助using System; using System.Collections.Generic; using System.Text; using System.Net; using System.IO; using System.Windows.Forms;namespace ConvertData{ class FtpUpDown { string ftpServerIP; string ftpUserID; string ftpPassword; F... 阅读全文
posted @ 2014-01-13 13:53 贝小贝 阅读(1113) 评论(0) 推荐(0)
摘要:/// /// 创建新文件 /// /// 文件路径 /// 文件名称 public void AddFile(string parentPath, string FileName) { parentPath = Server.MapPath(parentPath); bool flag = !Directory.Exists(parentPath + FileName); if (!flag) { ... 阅读全文
posted @ 2014-01-08 11:01 贝小贝 阅读(692) 评论(0) 推荐(0)