wait.c| #include <stdio.h>int main(int argc, int* argv[])
 {
 if (argc > 1 && argv[1])
 {
 int time = atoi(argv[1]);
 if (time)
 _sleep(time);
 else
 printf("usage: wait time(millisecond) e.g.:\nwait 1000\n");
 }
 else
 printf("usage: wait time(millisecond) e.g.:\nwait 1000\n");
 return 0;
 }
 
 | 
 
wait 500
##執行結果:

###wait 500:等待500毫秒。
##作用:
###執行批次檔時延遲指定時間並繼續執行命令。