2,640
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
#include <string.h>
void main(int argc,char**argv) {
if (argc<=1) {
U:
printf("Continuos output char {n|y|d|f|a}\\n for '%s n | xcopy ...'\n",argv[0]);
printf("Press <Ctrl-C> or <Ctrl-Break> to stop.\n");
printf("Usage:%s {n|y|d|f|a}",argv[0]);
return;
}
if (argv[1][1]!=0||strchr("nydfaNYDFA",argv[1][0])==NULL) goto U;
while (1) {
printf("%c\n",argv[1][0]);
}
}
将以上代码编译链接生成output.exe
在命令行:output y | schtasks