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;
}

 

相关文章: