Created
December 23, 2010 18:13
-
-
Save zzamboni/753333 to your computer and use it in GitHub Desktop.
Add a task to Outlook using powershell script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;---------------------------------------------------------------------- | |
| ; Add a task to Outlook using powershell. | |
| ; InputBox reference: http://www.autohotkey.com/docs/commands/InputBox.htm | |
| ; PowerShell script from http://www.leeholmes.com/blog/2007/03/01/getting-things-done-%E2%80%93-outlook-task-automation-with-powershell/ | |
| #Space:: | |
| InputBox, description, Add task,,,,100 | |
| If (ErrorLevel == 0) { | |
| ; Running it through %comspec% and with the Hide option prevents a | |
| ; command windows from briefly opening when the command is | |
| ; executed. | |
| Run, %comspec% /c "powershell -file %HOME%\Documents\Add-OutlookTask.ps1 "%description%"",,Hide | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated link is: http://www.leeholmes.com/blog/2007/03/01/getting-things-done-outlook-task-automation-with-powershell/