system("explorer.exe shell:RecycleBinFolder");
参考:C++ 调用cmd的几种方法_c++调用cmd并执行命令-CSDN博客
Windows系统,使用命令行打开回收站_cmd打开回收站-CSDN博客
类似的:
如何打开我的电脑(此电脑)?
shell:MyComputerFolder
所有控制面板项目
shell:ControlPanelFolder
程序和功能
shell:ChangeRemoveProgramsFolder
参考:shell打开文件夹命令_如何使用Windows的Shell命令打开隐藏的系统文件夹-CSDN博客
出现的问题:
system("explorer.exe shell:ChangeRemoveProgramsFolder");
不能正确打开该文件夹:
打开的是下面的文件夹:
而这样可以正确打开该文件夹:
system("rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl");
参考: