2017年9月21日

摘要: //Folder是需要复制的总目录,lastpath是目标目录 private void CopyFile(DirectoryInfo Folders, string lastpath) { //首先复制目录下的文件 foreach (FileInfo fileInfo in Folders.Get 阅读全文
posted @ 2017-09-21 16:39 安好无念 阅读(142) 评论(0) 推荐(0) 编辑

2016年5月23日

摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Text; 4 using System.Net; 5 using System.IO; 6 using System.Globalization; 7 using 阅读全文
posted @ 2016-05-23 17:38 安好无念 阅读(144) 评论(0) 推荐(0) 编辑

2016年5月4日

摘要: public static StringBuilder HttpPost(string Url, byte[] Postdata, string i) { StringBuilder content = new StringBuilder(); try { WebClient wc = new We 阅读全文
posted @ 2016-05-04 13:53 安好无念 阅读(334) 评论(0) 推荐(0) 编辑

2016年4月27日

摘要: public static string GetClientIPv4Address() { string ipv4 = String.Empty; foreach (IPAddress ip in Dns.GetHostAddresses(GetClientIP())) { if (ip.Addre 阅读全文
posted @ 2016-04-27 16:16 安好无念 阅读(142) 评论(0) 推荐(0) 编辑

2016年4月7日

摘要: private void numWeight_KeyPress(object sender, KeyPressEventArgs e) { if (char.IsNumber(e.KeyChar) || e.KeyChar == '.' || e.KeyChar == (char)Keys.Back 阅读全文
posted @ 2016-04-07 15:10 安好无念 阅读(210) 评论(0) 推荐(0) 编辑

2016年3月15日

只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2016-03-15 17:27 安好无念 阅读(6) 评论(0) 推荐(0) 编辑
 
摘要: 在刚开始做程序员时很多东西都需要从网上查询,试N多种才可以找到符合自己的。 现在这个时间我想分享的就是创建文件。         /// <summary>        /// 写日常日志,每月一个日常日志文件        /// </summary>        /// <para 阅读全文
posted @ 2016-03-15 16:38 安好无念 阅读(257) 评论(0) 推荐(0) 编辑