Location:
Search - DetailFileIn
Search list
Description: 如何用C#获得文件信息以及扩展信息
在C#中获得文件信息很容易,只需要用FileInfo类或者FileVersionInfo类就可以获得,但是如果想要获得文件的扩展信息,则无法从这两类来获得。不过在C#中,这也不是件难事,只要引入“Microsoft Shell Controls and Automation”这个COM就可以获得。-How to use C# to obtain file information, as well as the expansion of information obtained in the C# file information very easy, just use FileInfo class or category FileVersionInfo can get, but if you want to document the expansion of access to information, it can not be obtained from the two categories. However, in C#, this is not difficult, as long as the introduction of " Microsoft Shell Controls and Automation" of the COM can be obtained.
Platform: |
Size: 34816 |
Author: zhangchaozheng |
Hits: