system中有空格没法读取

原始路径:

"start C:\\Program Files\\Everything\\Everything.exe"

改为:

char *cmd="start C:\\\"Program Files\"\\Everything\\Everything.exe";
system(cmd);

posted @ 2022-03-27 22:04  小白白中白  阅读(62)  评论(0编辑  收藏  举报