没有合适的资源?快使用搜索试试~ 我知道了~
windows电脑关机定时关机管理
需积分: 1 0 下载量 132 浏览量
2013-07-27
14:57:33
上传
评论
收藏 1KB TXT 举报
温馨提示
试读
2页
{ printf("输入关机的时间(格式如12:28)\n"); scanf("%s",&time); strcat(leftpart,time); strcat(leftpart,rightpart); system(leftpart); } else if(a==4) system("shutdown -a"); else if(a==3) { system(comDel); printf("已删除所有计划!\n"); } else if(a==2)
资源推荐
资源详情
资源评论
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char* argv[])
{ system("color 2e");
int a;
char time[6]; //用来装输入的时间
char leftpart[21]="at ";
char* comDel="at /delete /yes"; //删除计划
char rightpart[]=" shutdown -s";
char daojishi[]="shutdown -s -t ";
char w[1000000];
//完整命令的右部
printf(" 欢迎进入电脑关机管理系统\n\n");
printf("********************************************************************************");
printf(" 01退出系统请按0\n 02想按定时方式关闭计算机请输入1\n 03想按倒计时方式关闭计算机请输入2:\n 04想取消定时方式关闭计算机请按3\n 05想取消倒计时方式关闭计算机请按4\n");
printf("********************************************************************************");
scanf("%d",&a);
printf("\n\n\n\n\n\n\n");
if(a==1)
{
printf("输入关机的时间(格式如12:28)\n");
scanf("%s",&time);
strcat(leftpart,time);
strcat(leftpart,rightpart);
system(leftpart);
}
else if(a==4)
#include <stdlib.h>
#include <string.h>
int main(int argc, char* argv[])
{ system("color 2e");
int a;
char time[6]; //用来装输入的时间
char leftpart[21]="at ";
char* comDel="at /delete /yes"; //删除计划
char rightpart[]=" shutdown -s";
char daojishi[]="shutdown -s -t ";
char w[1000000];
//完整命令的右部
printf(" 欢迎进入电脑关机管理系统\n\n");
printf("********************************************************************************");
printf(" 01退出系统请按0\n 02想按定时方式关闭计算机请输入1\n 03想按倒计时方式关闭计算机请输入2:\n 04想取消定时方式关闭计算机请按3\n 05想取消倒计时方式关闭计算机请按4\n");
printf("********************************************************************************");
scanf("%d",&a);
printf("\n\n\n\n\n\n\n");
if(a==1)
{
printf("输入关机的时间(格式如12:28)\n");
scanf("%s",&time);
strcat(leftpart,time);
strcat(leftpart,rightpart);
system(leftpart);
}
else if(a==4)
资源评论
liuminyue
- 粉丝: 0
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功