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...
阅读全文
摘要:从网上找到的非常好用的模拟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...
阅读全文
摘要:/// /// 创建新文件 /// /// 文件路径 /// 文件名称 public void AddFile(string parentPath, string FileName) { parentPath = Server.MapPath(parentPath); bool flag = !Directory.Exists(parentPath + FileName); if (!flag) { ...
阅读全文

浙公网安备 33010602011771号