C#:如何在关闭PC之前将唤醒时间设置为系统? [英] C#:How do I set the wake up time to system before shutdown the PC?

查看:111
本文介绍了C#:如何在关闭PC之前将唤醒时间设置为系统?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在C#.net windows应用程序中开发项目,因为我需要从我的日程表文件中读取下一个日程安排时间,如果没有下一个小时的日程安排,我的系统无需在下一个日程安排时间之前唤醒在计划文件中定义的到达范围。我的系统需要关闭,在关机之前需要设置系统唤醒的定时器。如何在关机之前设置系统ONTime我的电脑。
我通过python脚本在linux系统中通过在代码 / sys / class / rtc / rtc0 / wakealaram 位置编写系统来做到这一点。我只是在这个位置按时编写下一个系统并关闭系统,系统可以通过达到 wakealaram 文件中给出的时间自动开启。我需要在windows系统中使用c#来做同样的事情。

I am developing the project at C#.net windows application in that I need to read the next schedule time from my schedule file, if there is no schedule for next one hour, my system need not to wake on until next schedule time reach which is defined in schedule file. My system needs to shutdown, and before shutdown it need to set the timer for system wake. How to set the system ONTime before shutdown my pc.
I did this same in linux system through python script by writing the system on time at code /sys/class/rtc/rtc0/wakealaram location. I just write the next system on time at this location and shutdown the system, the system can be automatically on by reach the time which is given in wakealaram file. I need to do the same in windows system by using c#.

推荐答案

你好b $ b

看看这些:



将PC从待机或休眠状态唤醒



安排机器唤醒



C#:如何唤醒已经关闭的系统?
Hi
Look at these:

Wake the PC from standby or hibernation

Schedule machine to wake up

C#: How to wake up system which has been shutdown?


这篇关于C#:如何在关闭PC之前将唤醒时间设置为系统?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆