如何查找特定文件夹中的文件夹和文件数 [英] How to find the number of folders and files in particular folder
本文介绍了如何查找特定文件夹中的文件夹和文件数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在该项目中有一个项目(WFA),需要在发布前查找名称为
I have a project(WFA) in this project there is a need to find the numbers of folders and files with there name
推荐答案
Google的文件夹和文件的数量
解决方案的谷歌在这里...
http://www.lmgtfy.com/?q=listing+所有+文件+在+一个+目录+ c%23 [
Google before you post
A google of solutions here...
http://www.lmgtfy.com/?q=listing+all+files+in+a+directory+c%23[^]
如果您考虑要做什么,就会发现您需要用Directory
类做某事.也许有一种方法可以让您获取文件;天哪,它可以称为GetFiles
吗?您是否还认为可能有一种方法可以让您获取目录?继续,我会让你猜那个叫什么.
If you have a think about what you are trying to do, you will see that you need to do something with theDirectory
class. Perhaps there''s a method that would let you get files; gosh, could it be calledGetFiles
? Do you also think there might be a method that would let you get directories as well? Go on, I''ll let you guess what that one is called.
这篇关于如何查找特定文件夹中的文件夹和文件数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文