摘要: 1 #include<stdlib.h> 2 #include<stdio.h> 3 int main() 4 { 5 //cmd为可执行文件绝对路径 6 char *cmd="C:\\Users\\Red\\Desktop\\GVimPortable\\GVimPortable.exe"; 7 system(cmd); 8 getchar(); 9 return 0; 10 } 阅读全文
posted @ 2012-04-06 19:32 AndyDHG 阅读(377) 评论(0) 推荐(0) 编辑
摘要: 搜索文件夹中以.exe结尾的文件,并删除之:本例文件夹名路径为:c:\mm 1 #include<stdio.h> 2 #include<string.h> 3 #include<stdlib.h> 4 #include<io.h> 5 #include <process.h> 6 #include <memory.h> 7 8 void SearchFile(const char *); 9 10 int main() 11 { 12 SearchFile("C:\\mm");13 printf(&q 阅读全文
posted @ 2012-04-06 19:29 AndyDHG 阅读(1024) 评论(0) 推荐(0) 编辑