• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
FtpCsharp
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 2
2011年3月1日
C# 获得系统文件图片的 改进方式
摘要: 这是在网上看到的一段代码 用来获得系统文件对应的图标 ,仅以获得小图标为列 #region DLLIMPORT // Retrieves information about an object in the file system, // such as a file, a folder, a directory, or a drive root. [DllImport("shell32", EntryPoint = "SHGetFileInfo", ExactSpelling = false, CharSet = CharSet.Auto, SetLa 阅读全文
posted @ 2011-03-01 10:21 FtpCsharp 阅读(925) 评论(3) 推荐(0)
C# Xml
摘要: XmlDocument document = new XmlDocument(); //create the xmldocumentdocument.Load(xmlpath); //load xml by the absoult pathXmlNodeList nodeList = document.GetElementsByTagName("nodetagname"); //get the nodelist of nodetagnameXmlElement element = document.CreateElement("newnodename") 阅读全文
posted @ 2011-03-01 00:23 FtpCsharp 阅读(290) 评论(0) 推荐(0)
FileVersionInfo FileInfo
摘要: FileVersionInfo fv = FileVersionInfo.GetVersionInfo(filepath);get the version of the file :fv.FileVersionFileInfo fi =new FileInfo(filepath);fi.FullName:absolute pathfi.Name:get the name of file not contains the pathfi.Extension:get the extension of the file which contains '.'fi.LastWriteTim 阅读全文
posted @ 2011-03-01 00:18 FtpCsharp 阅读(384) 评论(0) 推荐(0)
2011年2月24日
using BAT to setup windows service
摘要: First of all ,we must copy thengen.exe andInstallUtil.exe to the windows service directory ,if we want to use the relative pathregist windows service Bat: InstallUtil Test.exe //the name of the service net start "Test" //start the serviceunregist windows service Bat: InstallUtil -u Windows 阅读全文
posted @ 2011-02-24 19:04 FtpCsharp 阅读(648) 评论(0) 推荐(0)
2010年11月21日
Method as a method parameters
摘要: delegate using as a method parameter 阅读全文
posted @ 2010-11-21 16:16 FtpCsharp 阅读(270) 评论(0) 推荐(0)
2010年11月19日
Usually Type Converter In Socket Transfor
摘要: Usually Type Converter In Socket Transfor 1:string byte[] (use to fransfor message in socket) 2:File byte[] (use to file transfor in socket) 3:Image byte[] (use transfor image in socket) 阅读全文
posted @ 2010-11-19 22:16 FtpCsharp 阅读(426) 评论(0) 推荐(0)
上一页 1 2
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3