473,386 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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?
Mar 29 '08 #1
4 10507
balabaster
797 Expert 512MB
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.
Mar 30 '08 #2
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
Mar 30 '08 #3
balabaster
797 Expert 512MB
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.
Mar 30 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Blaxer | last post by:
Does anyone know if there is a way to have an event fire when a computer resumes / wakes up from sleep mode (assuming the app is running before and after sleep mode is initiated). I am not talking...
3
by: Blaxer | last post by:
I am asking this question again in hopes that someone can answer it this time. Does anyone know if there is a way to have an event fire when a computer resumes / wakes up from sleep mode...
6
by: diffuser78 | last post by:
I am using 8 computers on a small network. I have one Main computer which should be able to remotely start other computers. I used Wake on LAN to start them all. My Main computer is Linux. ...
1
by: Oscar | last post by:
Hi, Is there a way to to "wake" a win xp machine from screen power save using c#? I got a computer that turns off the screen after a while and i'm programming an app that reads smart cards and...
3
by: ercastro | last post by:
I am a new user of Visual Basic. I am currently using VB 2005. I am running a time-consuming task on the built-in BackgroundWorker() control of VB. I am using nested loops and sometimes I need...
2
by: nondos | last post by:
Hi I have solution with two projects, one of them is a user control I created public shared sub in the user control which mean to wake up the control and start doing somthing, but when i try to...
0
by: =?Utf-8?B?QnJhbmR5?= | last post by:
When I select standby by computer goes to sleep. When I try to wake it up with the mouse or keyboard it will not work. The drives and monitor are functioning though. I can even open the DVD/CD...
0
by: Rahul | last post by:
Hello, Is it possible (by code) to set a timer and "force" the computer to wake up from hibernation/standby/sleep mode (either at specific time... or after specific interval) through C# code? ...
2
by: mlevit | last post by:
Hi, I currently have a VB program that uses the Shell command to shut it down. I use shutdown -f to shut the computer down. I was wondering if anyone knows what I can use to put the computer to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.