How to wake up computer under C#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • prometka
    New Member
    • Mar 2008
    • 2

    #1

    How to wake up computer under C#

    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
    Recognized Expert Contributor
    • Mar 2007
    • 798

    #2
    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.

    Comment

    • prometka
      New Member
      • Mar 2008
      • 2

      #3
      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

      Comment

      • balabaster
        Recognized Expert Contributor
        • Mar 2007
        • 798

        #4
        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...per haps my computer just doesn't support Wake-On-Demand and hence it's missing. If I come across anything, I'll let you know.

        Comment

        • ulricht
          New Member
          • May 2010
          • 1

          #5
          check this link out XD

          Comment

          Working...