Link to home
Start Free TrialLog in
Avatar of Replica178
Replica178

asked on

VB.NET Turn of Computer.

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
Avatar of lamaslany
lamaslany
Flag of United Kingdom of Great Britain and Northern Ireland image

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?
Avatar of Replica178
Replica178

ASKER

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?
thanks,but it's so long)
ASKER CERTIFIED SOLUTION
Avatar of 1303gun
1303gun
Flag of Brazil image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks
@1303gun

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

No. This is a project that I made specially for this purpose. Honestly, I didn't even access the link lol.
Ok. The names of the zip files matched :-)