c语言实现远程关机代码

更新时间:2024-07-07 04:32:02 阅读量: 综合文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

#include #include #include int print() {

printf(\★★★★★★★★★★★★★★★★★★★★★★★★★★★★★\\n\ printf(\

printf(\◆◆◆◆◆◆◆◆关机软件◆◆◆◆◆◆ ◆◆\\n\ printf(\◆◆ 1.实现10分钟内的定时关闭计算机 ◆◆\\n\ printf(\◆◆ 2.立即关闭计算机 ◆◆\\n\ printf(\◆◆ 3.注销计算机 ◆◆\\n\ printf(\◆◆ 4.关闭并重启计算机 ◆◆\\n\ printf(\◆◆ 5.休眠计算机 ◆◆\\n\ printf(\◆◆ 6.远程目标计算机重启 ◆◆\\n\ printf(\◆◆ 7.远程目标计算机关闭 ◆◆\\n\ printf(\◆◆ 8.退出系统 ◆◆\\n\ printf(\◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆ ◆◆\\n\ printf(\

printf(\★★★★★★★★★★★★★★★★★★★★★★★★★★★★★\\n\ return 0; }

void main() {

char cmd[20]=\ char t[5]=\ char p[30]=\ char q[40]=\ int c;

system(\关机软件\设置cmd窗口标题

system(\窗口宽度高度 system(\ system(\ system(\ print();

printf(\输入1-7项前对应的数值:\ scanf(\ getchar(); switch(c) {

case 1: {

printf(\您想在多少秒后自动关闭计算机?(0~600)\\n\ scanf(\

system(strcat(cmd,t)); break; }

case 2:system(\ case 3:system(\ case 4:system(\ case 5:system(\ case 6: {

printf(\输入远程计算机的IP或计算机名称:\ scanf(\

system(strcat(p,mb)); break; } case 7: { printf(\输入要关闭的远程计算机名称或IP地址:\ scanf(\ system(strcat(q,mb)); break; }

case 8:break;

default:printf(\ }

system(\ exit(0); }

本文来源:https://www.bwwdw.com/article/k0j.html

Top