Shutdown Windows In Visual Basic.Net 2003

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am an intermediate visual basic.Net programmer and want to know how to
write the code to shutdown windows, irrespective of the version.

Your assistance in this regard will be utmost appreciated.
 
Treasure Baloyi said:
I am an intermediate visual basic.Net programmer and want to know how to
write the code to shutdown windows, irrespective of the version.

WindowsController
<URL:http://www.mentalis.org/soft/class.qpx?id=7>

I didn't check if this class will work together with all Windows versions.
Note that Windows 95 is not supported by the .NET Framework at all.
 
You can also do it by issuing the following command:
shutdown.exe -s -t 00

shutdown.exe is in the System32 folder
Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top