2017-01-04 43 views

回答

0

pandoc-discuss

for %F in (*.txt) do pandoc %F > %F~n.html 
+0

我试着去做。但是我不能在命令提示符下打开输出文件:'C:\ Users \ Admin \ Documents \ Folder> pandoc input.html 1> output.html〜n.docx'。但是如果我使用'pandoc output.docx input.html',我可以打开输出文件。但我不知道如何为多个文件 – Nipayl

+0

做到这一点,如果你想要做转换为DOCX你显然需要更换'在我张贴的符合'.docx' .html' ... – mb21

+0

当然,我做了所以对于(* .html)中的%F做pandoc%F>%F〜n.docx'。但它不起作用 – Nipayl

0

我面临同样的问题,我无法找到一个解决方案。

的问题是,在PowerShell中不能使用通配符如* .MD。这只是一个Unix的事情。

您将不得不在Windows中使用单个文件。

相关问题