blat命令

I was reading my boss's blog today, as he's a hard core GTD practitioner - more than I - and I'm trying to get better at it.

我今天在阅读老板的博客,因为他是GTD的核心从业者-比我更多-并且我正在努力做得更好。

He recently went on an automation rampage kick around his home IT and wrote a pile of scripts. He also tends to email him self quick little reminders that are filed as todos, as do I, except he can just type

最近,他在自己的家庭IT上进行了自动化横冲直撞,并编写了一堆脚本。 他也倾向于通过电子邮件将自己的一些小提醒发送给他,就像我一样,除了他只能输入

todo "Write a blog post on foo"

要做“在foo上写博客文章”

And it'll be mailed to him with an appropriate subject and tagged in his Gmail account.

它将以适当的主题邮寄给他,并在他的Gmail帐户中进行标记。

He's using BLAT under Windows (using sendEmail under Linux). BLAT is a command-line util for sending email under Windows. It'll also post to USENET via NNTP if you like.

他在Windows下使用BLAT (在Linux下使用sendEmail)。 BLAT是用于在Windows下发送电子邮件的命令行实用程序。 如果愿意,它还将通过NNTP发布到USENET。

You can include all the settings on the command-line, or just "install" them in the registry, once, like this:

您可以在命令行中包含所有设置,或者一次将它们“安装”在注册表中,如下所示:

blat -install localhost whatever@yourdomain.com - - FromScott

BLAT -install本地主机whatever@yourdomain.com - - FromScott

Where "FromScott" is the name of a profile we'll use later. Then I can create a TODO.BAT (or TODO.PS1) and put this in it:

“ FromScott”是配置文件的名称,我们将在以后使用。 然后,我可以创建一个TODO.BAT(或TODO.PS1)并将其放入其中:

@echo off
blat -p FromScott -to whatever@yourdomain.com -subject %1 -body %1 > NUL

@回声关闭BLAT -p FromScott -to whatever@yourdomain.com -subject%1 -体%1> NUL

I like running BLAT with -debug, because I'm all about -verbose, don't you know.

我喜欢用-debug来运行BLAT,因为我全都关心-verbose,你知道吗。

NOTE: I'm using Vista and when I ran blat for the first time I was warned by the loader I didn't have MSVCR71.dll, so I ended up getting it and putting it in the same folder as BLAT then it was cool.

注意:我使用的是Vista,当我第一次运行blat时,加载程序警告我我没有MSVCR71.dll,因此我最终得到了它并将其放在与BLAT相同的文件夹中,这很酷。

I ended up making todo.bat, worktodo.bat and hometodo.bat and they look like this:

我最终制作了todo.bat,worktodo.bat和hometodo.bat,它们看起来像这样:

start "TODO-ING" /MIN c:\pathto\blat.exe -p FromScott -to me@noneofyourcheese.com -subject %1 -body %1 -debug

启动“ TODO-ING” / MIN c:\ pathto \ blat.exe -p FromScott -to me@noneofyourcheese.com-主题%1 -body%1 -debug

So now,

所以现在

c:>todo "Write a blog post about how my Home IT is automated"

c:> todo“撰写有关家庭IT如何自动化的博客文章”

Enjoy.

请享用。

翻译自: https://www.hanselman.com/blog/blat-command-line-emailer-saves-me-time

blat命令

blat命令_Blat-命令行电子邮件程序为我节省了时间相关推荐

  1. golang 命令行_如何使用Golang编写快速有趣的命令行应用程序

    golang 命令行 by Peter Benjamin 彼得·本杰明(Peter Benjamin) 如何使用Golang编写快速有趣的命令行应用程序 (How to write fast, fun ...

  2. react 让滚动条一直在下面_Ink 2.0 发布:命令行应用程序的 React

    作者 | Bethany Griggs.Michael Dawson译者 | 无明 自称为"命令行接口 React"的 JavaScript 库 Ink 最近发布了第二个主要迭代版 ...

  3. Android AM命令行启动程序的方法

    在Android中,除了从界面上启动程序之外,还可以从命令行启动程序,使用的是命令行工具am. 启动的方法为 wangwei@wwG41D3:~$ adb shell       $ su # am ...

  4. 使用.NET Core快速开发一个较正规的命令行应用程序

    程序员的世界,命令行工具一直是"体验非常友好"的工具,也能自动化完成很多事情,同时还能结合shell来进行某项任务的批处理(脚本).在.NET Core中,命令行应用程序是基础,但 ...

  5. 在Android命令行启动程序的方法

    在Android中,除了从界面上启动程序之外,还可以从命令行启动程序,使用的是命令行工具am.启动的方法为 # am start -n 包(package)名/包名.活动(activity)名称 启动 ...

  6. graalvm_GraalVM上的Picocli:极快的命令行应用程序

    graalvm GraalVM GraalVM允许您提前将程序编译为本地可执行文件. 与Java VM相比,生成的程序具有更快的启动时间和更低的运行时内存开销. 这对于通常寿命很短的命令行实用程序尤其 ...

  7. GraalVM上的Picocli:极快的命令行应用程序

    GraalVM GraalVM允许您提前将程序编译为本地可执行文件. 与Java VM相比,生成的程序具有更快的启动时间和更低的运行时内存开销. 这对于通常是短暂的命令行实用程序尤其有用. Graal ...

  8. nodejs命令行执行程序_在NodeJS中编写命令行应用程序

    nodejs命令行执行程序 by Peter Benjamin 彼得·本杰明(Peter Benjamin) 在NodeJS中编写命令行应用程序 (Writing Command-Line Appli ...

  9. Android中使用am命令实现在命令行启动程序详解

    在Android中,除了从界面上启动程序之外,还可以从命令行启动程序,使用的是命令行工具am. 复制代码代码如下: usage: am [subcommand] [options] start an ...

最新文章

  1. access下如何配置两个vlan_【新华三】网络工程师 H3C如何配置VLAN-trunk 二层隔离技术...
  2. fsimage文件丢失_Fsimage 与 EditLog定义及合并过程
  3. DTO数据传输对象详解
  4. R语言之离群点检验(part1)--利用箱线图原理检测离群点
  5. android doc例程---Notepad Tutorial学习要点!
  6. 第四周读书笔记《构建之法》
  7. 云原生全景图之五:应用程序定义和开发层
  8. 广和通再推5G利器,发布高性价比5G模组FM650
  9. HTTP, WWW-Authenticate, Authorization 验证授权 | Apache验证 | Python处理
  10. 想成为优秀的技术人员你必须做到的几件事情【转载】
  11. go实现文档中保存的微信图片.dat格式解密为图片
  12. python输入一个英文句子 输出单词个数_编写程序,给出一个英文句子,统计单词个数。_学小易找答案...
  13. 关于测试机器人的记录
  14. 观察者模式实际应用场景「扩展点实战系列」- 第439篇
  15. 我的创作纪念日---祈愿
  16. Unity-ShaderGraph制作2D动画精灵发光
  17. Qt 配置使用IPP库
  18. win10如何删除注册表残留文件
  19. 计算机财务管理知识点,财务管理知识点梳理(财务基础必背知识点整理篇)
  20. 【日常学习笔记】2019/1/(4,7)(SSM再熟悉与网页传值)

热门文章

  1. starUML简单绘图
  2. (更新文件啦!)自制PCB尺总结(在PCB中加入LOGO的最简单方法)
  3. android软键盘和导航栏冲突,Android隐藏导航栏/保持沉浸式模式与软键盘外观
  4. crawljax之ExitNotifier类
  5. 云图科技,长沙VR全景产业的未来是什么?
  6. 腾讯2017社交广告比赛(广告转化率预测)总结与分享--by Coda_Allegro
  7. 《ida主流插件使用》(2)windows下stack_strings插件使用
  8. git实验之代码提交
  9. 关于CVPR letex 模板显示Anonymous CVPR submission,无法显示作者姓名问题
  10. 高等专科学院音乐教育计算机课,开设音乐教育专业大学有哪些 有哪些主要课程...