By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,524 Members | 1,475 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,524 IT Pros & Developers. It's quick & easy.

Shutdown Windows In Visual Basic.Net 2003

P: n/a
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.
--
TTB
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"Treasure Baloyi" <Tr************@discussions.microsoft.com> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

P: n/a
You can also do it by issuing the following command:
shutdown.exe -s -t 00

shutdown.exe is in the System32 folder
Steve

"Treasure Baloyi" <Tr************@discussions.microsoft.com> wrote in
message news:A1**********************************@microsof t.com...
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.
--
TTB

Nov 21 '05 #3

P: n/a
"Steve Long" <St**********@NoSpam.com> schrieb:
You can also do it by issuing the following command:
shutdown.exe -s -t 00

shutdown.exe is in the System32 folder


Are you sure "shutdown.exe" is available on Windows 98/Me too? The DLL Help
Database only lists it for Windows XP and some other products:

<URL:http://support.microsoft.com/dllhelp/?dlltype=file&l=55&alpha=shutdown.exe>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.