VB.NET Turn of Computer.

Replica178
Replica178 used Ask the Experts™
on
Hi all.How i can turn off a PC using VB.NET ??
for ex: the compuetr must be turned off at 11:45.
How i can make it?
thanks.
P.S the computer OS is Windows 7
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
To clarify:  are you trying to write a service that runs in the background which at 11:45 shuts down the computer?  Or are you trying to write an app that schedules a shutdown for 11:45?

Author

Commented:
sorry for my english.
the application must turn off the computer at 11:45,or 10:45,how i like it.
it must be open for all the time.
for ex.:
at 7:35 i open the application and set the time of turn off.
 at 7:45 i go out anf the computer must be turned off at 11:45.
ok?
Most Valuable Expert 2012
Top Expert 2014

Commented:
11/26 Forrester Webinar: Savings for Enterprise

How can your organization benefit from savings just by replacing your legacy backup solutions with Acronis' #CyberProtection? Join Forrester's Joe Branca and Ryan Davis from Acronis live as they explain how you can too.

Author

Commented:
thanks,but it's so long)
Commented:
Hello. You may like to take a look at this project.

The project is made in Visual Studio 2010. ShutdownTimer.zip

Author

Commented:
thanks
Most Valuable Expert 2012
Top Expert 2014

Commented:
@1303gun

Is that zip file not downloaded from the codeproject link I posted?

Commented:
Hello CodeCruiser.

No. This is a project that I made specially for this purpose. Honestly, I didn't even access the link lol.
Most Valuable Expert 2012
Top Expert 2014

Commented:
Ok. The names of the zip files matched :-)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial