I know this is an old thread, but I am trying to create a folder with many outputs. I tried to follow the thread but, upon exporting, I keep getting an invalid argument error.

I am trying to batch all inputs from a folder into a subfolder inside the same directory, so that all outputs are in a different folder.

I've tried the following but it is not creating the folder and putting files in that folder.

gci -r -i *.docx |foreach{$md=$_.directoryname+"\"+$_.basename+".md";pandoc -f docx --wrap=none -s $_.name -o here/$md}
On Sunday, February 1, 2015 at 12:51:10 AM UTC-6 John MacFarlane wrote:
Sure. Assuming you're in C:\Example, you could do

pandoc myfile.txt -s -o here\myfile.html

Or, if you're somewhere else,

pandoc C:\Example\myfile.txt -s -o C:\Example\here\myfile.html

+++ Darren Doyle [Jan 31 15 20:33 ]:
>Let's say I had a markdown document located in C:\Example.
>If I converted it to HTML can I set the output directory for that file to a
>different folder (C:\Example\here)?
>
>--
>You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discus...@googlegroups.com.
>To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/e185159b-34cb-4dcb-9825-cb842a876b4e%40googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/f9089c8d-e19b-4652-a068-215591b1446bn%40googlegroups.com.