文件夹中的文件数

如何使用ASP.NET和C#从文件夹中获取文件数量?

回答:

System.IO.Directory myDir = GetMyDirectoryForTheExample();

int count = myDir.GetFiles().Length;

以上是 文件夹中的文件数 的全部内容, 来源链接: utcz.com/qa/400130.html

回到顶部