• λ我爱Aspx >> Asp.Net >> 使用C#编写的一个定时关机程序
  • 使用C#编写的一个定时关机程序

  • :未知  Դ:internet  :2007-5-20 16:43:52  ؼ:c#
  • 有很多的软件都实现了自动关机这样的功能。前一阵在Codeproject上看到一个这样的程序,整理了一下共享给大家。里面实现了关机,重启,注销等功能.

    using System;

    using System.Collections;

    using System.ComponentModel;

    using System.Drawing;

    using System.Diagnostics;

    using System.Runtime.InteropServices;

    using System.Threading;

    using System.Windows.Forms;

    namespace TimerComputerShutdown

    {

    /// <summary>

    /// Summary description for TimerComputerShutdown.

    /// </summary>

    public class TimerComputerShutdown : System.Windows.Forms.Form

    {

    private System.Windows.Forms.Label labelWhatDoYouWantTheComputerToDo;

    private System.Windows.Forms.ComboBox comboBox;

    private System.Windows.Forms.Label labelSelectDateTimeToShutdownComputer;

    private System.Windows.Forms.DateTimePicker dateTimePicker;

    private System.Windows.Forms.Label labelDateTimeNow;

    Ҷƪл˵?
  • һƪ使用C#控制远程计算机的服务
    һƪ得到系统进程和结束某个指定的进程