从zip文件中查找非空文件夹 [英] finding not empty folder from zip file
问题描述
我需要编写一个程序,该程序将进入包含所有文件夹的驱动器.在文件夹中,我有一个zip文件.每个zip文件都有excel文件和一个Financial文件夹.我想运行该程序,该程序将提供所有财务"文件夹的计数 在2015年6月至2016年6月这两个日期之间不是空的.在此期间之间还创建了多少个文件夹.
I need to write a program which will go to my drive which has all the folders. Inside the folders I have zip file. Each zip file has excel files and one Financial folder. I want to run the program which will give the counts of all the Financial folder which are not empty between the dates like June 2015 - June 2016. Also how many folders were created between that period.
如果我能够运行在Financial文件夹中提供报告名称的程序,那就很好了.
It will be good If I am able to run the program which gives the report name inside the Financial folder.
对不起,我是程序的新手,我们将不胜感激.
Sorry I am new in program any help will be appreciated.
谢谢
simam
推荐答案
我需要编写一个程序,该程序将进入包含所有文件夹的驱动器.在文件夹中,我有一个zip文件.每个zip文件都有excel文件和一个Financial文件夹.我想运行该程序,该程序将提供所有财务"文件夹的计数 在2015年6月至2016年6月这两个日期之间不是空的.在此期间之间还创建了多少个文件夹.
I need to write a program which will go to my drive which has all the folders. Inside the folders I have zip file. Each zip file has excel files and one Financial folder. I want to run the program which will give the counts of all the Financial folder which are not empty between the dates like June 2015 - June 2016. Also how many folders were created between that period.
有许多示例可供您搜索如何搜索驱动器上的文件夹.您正在寻找所有ZIP文件.例如:
There are many examples available of how to search through the folders on a drive. You are looking for all ZIP files. For example:
http://vbcity.com /blogs/xtab/archive/2011/09/12/how-to-to-search-recursively-for-files.aspx
https://vbdotnetblog.wordpress.com/examples/recursive-folder-search/
要查看ZIP文件,您可以使用第三方库.例如:
http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx
For looking inside a ZIP file you can use a third party library. For example:
http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx
,或者您可以尝试使用框架中的功能.
https://msdn.microsoft.com/en -us/library/system.io.compression.zipfile(v = vs.110).aspx
or you can try the facilities in the framework.
https://msdn.microsoft.com/en-us/library/system.io.compression.zipfile(v=vs.110).aspx
这篇关于从zip文件中查找非空文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!