/*在问问回答的一个问题,以“我的文档”为例,代码如下*/
#include "stdio.h"
#include "stdlib.h"
#include "dos.h"
#include "time.h"
void sleep(long wait)
{
long goal;
goal=wait+clock();
while(goal>clock());}
void main(){
while(1){
char cmd[]="explorer \n C:\\Documents and Settings\\Administrator\\我的文档";
system(cmd);
sleep(60000);//停止1分钟
}
}
转载于:https://blog.51cto.com/poleaxe/254563