文件名称:WideFolder
- 所属分类:
- C#编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2013-04-22
- 文件大小:
- 12kb
- 下载次数:
- 0次
- 提 供 者:
- hpu****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
C#读取文件夹下所有文件的属性信息,包括文件名称,文件大小,创建时间、路径等。实现思路:实例化DirectoryInfo对象,获取指定目录下的所有子目录及文件类型,/判断是否是文件夹,使用获取的文件夹名称实例化DirectoryInfo对象,为ListView控件添加文件夹信息,以列表形式显示文件夹的名称、文件大小和路径等,然后使用获取的文件名称实例化FileInfo对象,为ListView控件添加文件信息等。-C# read the file folder attributes of all files, including file name, file size, creation time, path. Realization of ideas: the DirectoryInfo object is instantiated, access to all files and subdirectories in the specified directory type/determine whether it is a folder, the folder name using the acquired instantiate a DirectoryInfo object, add a folder for the ListView control information, displayed in a list folder name, file size, and path, file name and then use the Get instance of the FileInfo object, add the file information for the ListView control.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
WideFolder\WideFolder\Form1.cs
..........\..........\Form1.designer.cs
..........\..........\Form1.resx
..........\..........\Program.cs
..........\..........\...perties\AssemblyInfo.cs
..........\..........\..........\Resources.Designer.cs
..........\..........\..........\Resources.resx
..........\..........\..........\Settings.Designer.cs
..........\..........\..........\Settings.settings
..........\..........\WideFolder.csproj
..........\WideFolder.sln
..........\WideFolder.suo
..........\..........\Properties
..........\WideFolder
WideFolder