#include <stdlib.h>
#include <stdio.h>
#include<conio.h>
void main()
{
int ch;
clrscr();
printf("\n\n~~~~~~~~~~~~~~~~~SHUTDOWN MENU~~~~~~~~~~~~~~~~~~~\n");
printf("1.Shutdown\n2.Restart\n3.Logoff\n4.Hibernate\n5.exit");
printf("\nEnter choice : ");
scanf("%d",&ch);
switch(ch)
{
case 1:system("shutdown -s");
break;
case 2:system("shutdown -r");
break;
case 3:system("shutdown -l");
break;
case 4:system("shutdown -h");
break;
case 5:exit(1);
break;
default:printf("Invalid choice");
}
getch();
}
murtazamzk 26 Light Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
Shankye 36 Junior Poster
Jason Giggs 1 Junior Poster in Training
Shankye 36 Junior Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
Trentacle 112 Junior Poster in Training
atulpust 0 Newbie Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.