Click here to Skip to main content
Licence Apache
First Posted 20 Oct 2005
Views 67,605
Bookmarked 45 times

Windows Shutdown Timer with a One Minute Warning

By | 27 Oct 2005 | Article
Allows the user to shutdown Windows at a time the user sets.

Sample Image - ShutdownTimer.jpg

Introduction

What if you can initiate the Windows shutdown sequence at a specific time you set, without the need for you to be physically present in front of the computer? Well, this tool allows you to do just that! You can shutdown, logoff, hybernate, or stand by your Windows PC at any time you wish to.

Plus, it gives you a one minute warning in case you change your mind!

Motivation

I often listen to slow classical music while going to bed. 9/10 times, I fall asleep without shutting down my PC. So I looked for a tool to shutdown my PC at a time I set... Most of the applications I found weren't freeware. So I decided to write my own application. And here it is!

Two ways to initiate the shutting down

  1. User can set a time in the clock (E.g.: shutdown at 22:00 hrs.).
  2. User can start a count down timer (E.g.: shutdown in 10 mins.).

Code Re-used

Although I designed and wrote the code, I re-used some of the code from other projects published here and else where.

  • TaskbarNotifier is a class I downloaded from CodeProject which shows a MSN like popup to give the user a one minute warning. I changed the display attributes to suit my popup window size and colours.

  • The WindowsController class was downloaded from here.

License

This article, along with any associated source code and files, is licensed under The Apache License, Version 2.0

About the Author

Suneth Mendis

Web Developer

Japan Japan

Member

I'm Software engineer working for Ephox Corporation, Brisbane Australia.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMy vote of 5 Pinmembervalmik ramesh chhadikar23:17 1 Jul '10  
GeneralMy vote of 2 PinmemberAjizen8:13 13 Oct '09  
Generalhelp me pleaseeeeeee PinmemberCarmen_yani15:11 12 Sep '09  
GeneralNeed some help PinmemberPhope10:33 26 Apr '07  
AnswerRe: Need some help PinmemberSuneth Mendis18:54 30 Apr '07  
Generaldissapointed Pinmembera ghost3:28 30 Jan '07  
QuestionWill it work when windows log off automatically? Pinmembermajor_mortimer4:47 22 Aug '06  
GeneralDemo Error PinmemberWesleyHowe1112:02 27 Oct '05  
Generalshutdown -i Pinmemberreinux23:04 21 Oct '05  
GeneralAMP WinOFF PinmemberJohn N13:34 25 Oct '05  
GeneralRe: shutdown -i PinmemberSuneth Mendis17:55 27 Oct '05  
GeneralA good utility... PinmemberJun Du5:51 21 Oct '05  
GeneralRe: A good utility... PinmemberSuneth Mendis17:45 27 Oct '05  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web01 | 2.5.120517.1 | Last Updated 27 Oct 2005
Article Copyright 2005 by Suneth Mendis
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid