Professional Documents
Culture Documents
Shutdown and Restart Computer in C
Shutdown and Restart Computer in C
Shutdown and Restart Computer in C
Sharp )
Actualy the program to shutdown or restrart on a computer using C# there are two ways, namely
using the help command prompt and the second pure script of the language itself dotNet. For this
post will be explained and also give examples of haow making project for shutdown or do restart on
a computer using the help command promt, so that programers are required to at least know the
basic function from command promt itselt.
Before you learn more abaout the program that will be made to perform on a computer shutdown
or restrart please read the firs article to run the command prompt in C#. This will graetly help in
understanding this materi. Because the concept is almost similar to way programs run command
prompt such a change. Now beginning its work on the project . As usual for the fitst step please
prepare an empty project an empty project please click on the file after the new project dialog
box appears please use the project name project name in box, there are no specific rules in writing
the name of the project. For the next step please follow the intstruction below
Step 1 : Add two buttons on form1 in the project has been provided previously, organize and
structure such that it looks loke in the picture below
Clue download : click the link download above, after which it will apear
adf.ly pages, wait several second until the top right corner it show "skip ad", click the button, after
which it will appear ziddu page, please click on the download button which appears on page ziddu
NB : All of program in this tutorial write using the IDE Visual Studio 2010. with the target framework
3.5