【发布时间】:2020-01-11 00:41:35
【问题描述】:
我已经搜索了无数线程,例如这个Mac Tutorial 和这个看似相关的Powershell Tutorial,但无济于事。目前,我正在尝试运行
for (/r "." %i in (*.docx) do pandoc -o "%~i.md" "%~i")
将当前目录中的所有 .docx 转换为 .md。不幸的是,当从 Powershell ISE 运行它时,我遇到了以下消息
Missing statement body in for loop.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingLoopStatement
请告知如何使用 powershell 将充满 .docx 文件的目录转换为 .md。我有大约 250 个文档要转换,并且迫切需要帮助!
【问题讨论】:
-
这不是powershell命令,这是Windows CMD命令
-
感谢您的澄清。我不熟悉 Windows 批处理或 PowerShell 脚本,也无法发现明显的区别 :-)
标签: powershell docx pandoc