有没有办法删除名称中包含一个单词的任何文件? 例如:chrome.1323.pf我想删除名称中包含chrome的所有文件。 我尝试了这个:
if (GetAsyncKeyState(0x75)) {
std::string command = "del /Q ";
std::string path = "C:\\Windows\\Prefetch\\AUDIOZ.*.pf";
system(command.append(path).c_str());
}
但是效果不是很好。