如何使用boost库查找所有.exe文件
How do I find all .exe files using the boost library?
boost与FindFirstFile
类似的功能是什么?我想在使用boost的文件夹中找到*.exe
。
例如:
HANDLE handle = FindFirstfile(buf, &finds);
while(FindNextFile(handle, &finds) { // using file }
您可以使用directory_迭代器:
#include <boost/filesystem.hpp>
using namespace std;
using namespace boost::filesystem;
...
path mypath("/where/ever/");
for(directory_iterator it( mypath ); ; ++it) {
...
}
并符合您的标准。
相关文章:
- 终端不会为C++文件创建.exe文件吗
- 从 exe 文件 (Visual Studio ) 启动时调试断言失败
- 如何在Visual Studio Code中重命名我的a.exe文件?
- 在VS Code中编译C / C ++时如何禁用自动创建EXE文件?
- 来自Visual Studio中控制台项目的exe文件?
- 在安卓应用程序中使用.exe文件
- 更新到 2020 年 5 月版本后,无法在 Visual Studio 2019 中创建.exe文件
- 有没有一种方法可以将数据从javascript发送到exe文件
- C++程序编译器在使用g++命令编译后自动运行exe文件
- 在位置上运行具有依赖项的.exe文件
- 是否可以将 EXE 文件作为 lib 文件链接到另一个项目?
- Qt .exe文件错误
- 如何检查 win32 exe 文件是否已运行?(使用 win32 API 代码)
- 获取 exe 文件夹路径的最佳方法?
- 从 Qt(release) 生成的文件执行.EXE文件时出错
- 如何将本地文件嵌入从C 项目生成的EXE文件中
- 在不同的计算机上运行.exe文件.(视觉工作室)
- 如何循环访问在 cmd 中获取参数的 exe 文件
- 将 14 GB 数据附加到 EXE 文件的末尾
- 将清单嵌入到 exe 文件