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

 

posted @ 2019-07-21 19:56  _KikyoBK  Views(2049)  Comments(0)    收藏  举报