2015年1月20日
摘要: PsExec.exe \\192.168.1.1 -u username -p password -i -d -s c:\Windows\system32\NETSTAT.exe -a 阅读全文
posted @ 2015-01-20 13:23 harrell 阅读(1565) 评论(0) 推荐(0) 编辑
摘要: var xmlDoc = new XmlDocument();xmlDoc.Load(fatalFile);var s = xmlDoc.SelectNodes("configuration/appSettings/add[@key='KeyName']")[0].Attributes["value... 阅读全文
posted @ 2015-01-20 13:21 harrell 阅读(139) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Net.NetworkInformation;using System.ServiceModel.Descrip... 阅读全文
posted @ 2015-01-20 13:19 harrell 阅读(409) 评论(0) 推荐(0) 编辑
摘要: 方式一:var rte = sender as RichTextEdit;control = rte.Controls[0] as RichEditControl;方式二:PropertyInfo myPropertyInfo1 = rte.GetType().GetProperty("InnerC... 阅读全文
posted @ 2015-01-20 13:17 harrell 阅读(976) 评论(0) 推荐(0) 编辑
摘要: using( RichEditControl selector = new RichEditControl() {RtfText = richTextFromHtml } ) {DocumentRange rangeBlockOne = selector.Document.CreateRange( ... 阅读全文
posted @ 2015-01-20 10:36 harrell 阅读(334) 评论(0) 推荐(0) 编辑