To run a Cygwin script (or executable?) from the Windows 7 Task Scheduler:

  1. Open the Windows Task Scheduler, e.g., search for “task scheduler” from the Windows start menu.
  2. In the left-hand pane, select Task Scheduler Library or, optionally, select one of its subfolders, creating one if desired. (I keep my tasks under a personal subfolder I've created, for easy reference.)
  3. Select menu item Action: Create Task...
  4. Enter a task name in the Name: field.
  5. (optional) Enter a description in the Description field.
  6. Other things in this tab can be left as-is, although I generally choose Run whether user is logged on or not.
  7. Skipping over the Triggers tab for now, select the Actions tab.
  8. Push the New... button.
  9. Make sure Action is “Start a program”; enter the full Windows path to bash.exe (when scheduling bash scripts) into the Program/script box:
  10. In the Add arguments box, enter “-l -c” and the bash command to run, e.g.,:
               -l -c "/home/peter/bin/ 2>&1 >> daily.log"
    In this example,
  11. Go back to the Triggers tab and specify when the script should be run.