C++打开文件夹

https://bbs.csdn.net/topics/392055617?page=1   见2楼

system("start \"\" \"文件夹路径\"");

例:

#include<iostream>

using namespace std;

int main(){
    system("start \"\" \"D:\\test\\hh\\xxx\""); //路径为D:\test\hh\xxx
    return 0;
}

猜你喜欢

转载自www.cnblogs.com/Toya/p/11222453.html