• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
FtpCsharp
博客园    首页    新随笔    联系   管理    订阅  订阅
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)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3