Connecting Tech Pros Worldwide Forums | Help | Site Map

Wake up computer under C#

Newbie
 
Join Date: Mar 2008
Posts: 2
#1: Mar 29 '08
Hi,
I'm new here and I need a small advice

Do you know how to wake up computer from hibernation or sleeping mode(in windows) by programming under C#?
Let me explain my problem. I created a simple programme which I want to run in the morning in different time. My problem is I don't know how to programme it to wake up computer and run programme . Every evening I want just add to my programme time to wake up. I know that under windows it's possible to do it by schedule task, but I want to do it automaticly.

Will you help me?

balabaster's Avatar
Moderator
 
Join Date: Mar 2007
Location: Canada
Posts: 757
#2: Mar 30 '08

re: Wake up computer under C#


Quote:

Originally Posted by prometka

Hi,
I'm new here and I need a small advice

Do you know how to wake up computer from hibernation or sleeping mode(in windows) by programming under C#?
Let me explain my problem. I created a simple programme which I want to run in the morning in different time. My problem is I don't know how to programme it to wake up computer and run programme . Every evening I want just add to my programme time to wake up. I know that under windows it's possible to do it by schedule task, but I want to do it automaticly.

Will you help me?

I hate to be the one that says something is not possible...but I'm not convinced this is possible with software. I've not been able to get Windows Scheduler to even do this - Windows Scheduler will run if the computer is on or awake, but if it's in suspend or hibernate mode it doesn't wake the computer up. The Wake-On-LAN feature is something that's hardware triggered - the BIOS must support Wake-On-LAN in order for traffic to the network card to wake up the motherboard which in turn triggers the computer to boot. When the computer is in suspend/hibernate there is no software processing completed so the only way I can see this being possible is by hardware.

I would love to hear from someone else that this is possible, but I can't see how logically it can.
Newbie
 
Join Date: Mar 2008
Posts: 2
#3: Mar 30 '08

re: Wake up computer under C#


Quote:

Originally Posted by balabaster

I hate to be the one that says something is not possible...but I'm not convinced this is possible with software. I've not been able to get Windows Scheduler to even do this - Windows Scheduler will run if the computer is on or awake, but if it's in suspend or hibernate mode it doesn't wake the computer up. The Wake-On-LAN feature is something that's hardware triggered - the BIOS must support Wake-On-LAN in order for traffic to the network card to wake up the motherboard which in turn triggers the computer to boot. When the computer is in suspend/hibernate there is no software processing completed so the only way I can see this being possible is by hardware.

I would love to hear from someone else that this is possible, but I can't see how logically it can.

I know that if I add task in schedule task and check on "wake up computer to do this task" or something like it is possible to do it. But I don't know how to program it instead do it by hand
balabaster's Avatar
Moderator
 
Join Date: Mar 2007
Location: Canada
Posts: 757
#4: Mar 30 '08

re: Wake up computer under C#


Quote:

Originally Posted by prometka

I know that if I add task in schedule task and check on "wake up computer to do this task" or something like it is possible to do it. But I don't know how to program it instead do it by hand

I appear to be missing that option in my Windows Task Scheduler...perhaps my computer just doesn't support Wake-On-Demand and hence it's missing. If I come across anything, I'll let you know.
Reply


Similar .NET Framework bytes