在 Visual Studio 2010 Pro 中包括子目录

发布于 2024-10-04 07:34:57 字数 110 浏览 0 评论 0原文

我正在编写一个需要我扫描 C: 的项目。现在,我可以正常扫描了,我所需要的只是在扫描中包含子目录。这就像扫描所有文件夹以及文件夹的文件夹等等。如果有人能回复我,那就太好了!

I am coding a project that requires me to scan through the C:. Now, I got it to scan fine, all I need is for it to include the sub-directories in the scan. This is as in, scanning all of the folders and the folders of the folders and so on. If anyone can get back to me, that would be great!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

叶落知秋 2024-10-11 07:34:57

如果您使用.Net,您可以调用

Directory.EnumerateFiles(@"C:\", SearchOption.AllDirectories);

If you're using .Net, you can call

Directory.EnumerateFiles(@"C:\", SearchOption.AllDirectories);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文