摘要:
这是在网上看到的一段代码 用来获得系统文件对应的图标 ,仅以获得小图标为列 #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 阅读全文
摘要:
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") 阅读全文
摘要:
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 阅读全文