Thursday, May 30, 2013

9:42 AM




2
Do you want a reminder program for handle your tasks? There are many reminder programs and  scheduling softwares. but, we outline a simple way you can do this with no additional software.

Cerate it for your windows screens!

open Windows Task Scheduler and give create task


The task should be set to ‘Run only when user is logged on’ with the ‘Hidden’ option unchecked.

Set the schedule to run as appropriate.



The program to run is CMD.exe which is the Windows command line console shell with the first argument being ‘/C’ which will run the subsequent text in the shell and then terminate the console window.



The magic here is in the arguments box (after the aforementioned ‘/C’ switch) which reads (note – while this displayed on several lines below, all of this text is a single contiguous line in the arguments box):

TITLE Read Cyber Gist Reminder&ECHO.&ECHO.&ECHO It is currently %TIME%
&ECHO.&ECHO.&ECHO Time to go read Cyber Gist.
&ECHO http://www.cybergist.blogspot.com&ECHO.&ECHO.&TIMEOUT 120

The ampersand (&) character allows you to chain together commands on a single line which makes the above equivalent to the following sequence:

TITLE Read Cyber Gist Reminder
ECHO.
ECHO.
ECHO It is currently %TIME%
ECHO.
ECHO.
ECHO Time to go read Cyber Gist.
ECHO http://www.cybergist.blogspot.com
ECHO.
ECHO.
TIMEOUT 120

The commands above could be put into a batch script and then have the scheduled task set to run the respective program/script instead to achieve the exact same result (although in a batch script, you would want to insert @ECHO OFF as the first command).

The message can be customized as needed and to understand exactly how the message is generated, consider the following keywords:

-TITLE changes the console window name to the subsequent text.

-ECHO prints the subsequent text to the console window. When a dot immediately follows the ECHO command, a blank line is printed.

-%TIME% is an environment variable which is replaced with the current system time (in 24-hour format).

-TIMEOUT <N> tells the console to wait N number or seconds to continue or until a key press is made (whichever comes first). If you wanted to force the window to wait until a key press is made (i.e. no countdown), then enter -1 as the value for N.

Of course, you are not limited to only the commands above – you have the entire command line arsenal of keywords at your disposal which can, for example, have your reminders open programs and/or launch websites as part of the process.

2 comments:

  1. Nice tutorial. Windows reminders are very helpful. Thanks for sharing.

    ReplyDelete