0
在上pandoc.org的常见问题有Linux和Mac用户的指令:如何将pandoc用于Windows中文件夹中的所有文件?
for f in *.txt; do pandoc "$f" -s -o "${f%.txt}.rtf"; done
但对于Windows用户没有指令。
在上pandoc.org的常见问题有Linux和Mac用户的指令:如何将pandoc用于Windows中文件夹中的所有文件?
for f in *.txt; do pandoc "$f" -s -o "${f%.txt}.rtf"; done
但对于Windows用户没有指令。
for %F in (*.txt) do pandoc %F > %F~n.html
我面临同样的问题,我无法找到一个解决方案。
的问题是,在PowerShell中不能使用通配符如* .MD。这只是一个Unix的事情。
您将不得不在Windows中使用单个文件。
我试着去做。但是我不能在命令提示符下打开输出文件:'C:\ Users \ Admin \ Documents \ Folder> pandoc input.html 1> output.html〜n.docx'。但是如果我使用'pandoc output.docx input.html',我可以打开输出文件。但我不知道如何为多个文件 – Nipayl
做到这一点,如果你想要做转换为DOCX你显然需要更换'在我张贴的符合'.docx' .html' ... – mb21
当然,我做了所以对于(* .html)中的%F做pandoc%F>%F〜n.docx'。但它不起作用 – Nipayl