
请教如何使用c语言代码 打开文件所在目录
1个回答
展开全部
#include <stdio.h>
#include<stdlib.h>
int main(){
char command[50];
char path[50];
printf("请输入文件路径:");
scanf("%s", path);
sprintf(command,"explorer %s",path);
system(command);
return 0;
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询