PsExec.exe执行远程程序
摘要: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
阅读(1622)
推荐(0)
读取xml
摘要: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
阅读(157)
推荐(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
阅读(429)
推荐(0)
DevExpress中获取RichTextEdit中RichEditControl的两种方式
摘要:方式一:var rte = sender as RichTextEdit;control = rte.Controls[0] as RichEditControl;方式二:PropertyInfo myPropertyInfo1 = rte.GetType().GetProperty("InnerC...
阅读全文
posted @
2015-01-20 13:17
harrell
阅读(1033)
推荐(0)
带格式分离两个RichEditControl的文本
摘要:using( RichEditControl selector = new RichEditControl() {RtfText = richTextFromHtml } ) {DocumentRange rangeBlockOne = selector.Document.CreateRange( ...
阅读全文
posted @
2015-01-20 10:36
harrell
阅读(341)
推荐(0)
html转换为纯文本,支持撇号
摘要:/// /// html转换为纯文本 /// /// /// private static string HtmlToPlainText(string source) { string...
阅读全文
posted @
2015-01-16 13:39
harrell
阅读(230)
推荐(0)