How To Make A Shutdown Manager In VB.NET

Today I went through my old project and I found a project and wanted to create a tutorial about it so it's a shutdown manager. I couldn't test and make it so much advanced because I don't have time so I will just write down the basic codings .

To Shutdown Computer you can use 

        Shell("shutdown -s")

To Log off Computer you can use

            Shell("shutdown -l")

To Restart Computer you can use

            Shell("shutdown -r")

you can also use System.Diagnostics.Process.Start() 

:)

5 comments

thanks gan....
http://www.rajalistrik.com

Reply

Full Details for windows power option

# *shutdown pc*
shell("shutdown -s -t 10 -c pc,will,shutdown,after,10,seconds")

# *Restart pc*
shell("shutdown -r -t 10 -c pc,will,restart,after,10,seconds")

# *Log-off* {From User A/c (PC)
shell("shutdown -l -t 10 -c pc,will,log-off,after,10,seconds")

# *Abort* {power option.
shell("shutdown -a")
-------------------------------------------------------------------------------------
s stands for shutdown
r stands for restart
l stands for log off
t stands for countdown time
a stands for abort/cancel
c stands for message box and word is seperate by comma

Reply

This technical post helps me to improve my skills set, thanks for this wonder article I expect your upcoming blog, so keep sharing.
Regards,
Python Training in Chennai|Python Course in Chennai

Reply

all kind of this technical information really helps most of readers
getting training on seo or learning seo with real seo expert is great deal done in learning digital marketing seo training in bangalore

Reply

Post a Comment