JonF Posted 10 hours ago Posted 10 hours ago I must be doing something stupid. At the Windows command line this works: "C:\Program Files\pandoc-3.7.0.2\pandoc.exe" -s "F:\jonf\Downloads\pebakery-docs\Commands\Archive\CopyOrExpand.md" -o "F:\jonf\Downloads\pebakery-docs\Commands\Archive\CopyOrExpand0.html" --template "E:\PhoenixPE\PhoenixPE Help Source\Tools\PEBuilderMD.html" --metadata title=CopyOrExpand This doesn't: $Pandoc = '"C:\Program Files\pandoc-3.7.0.2\pandoc.exe"' $Command = ' -s "F:\jonf\Downloads\pebakery-docs\Commands\Archive\CopyOrExpand.md" -o "' & _ 'F:\jonf\Downloads\pebakery-docs\Commands\Archive\CopyOrExpand0.html" --template "' & _ 'E:\PhoenixPE\PhoenixPE Help Source\Tools\PEBuilderMD.html" --metadata title=CopyOrExpand' $Return = RunWait($Pandoc, $Command) MsgBox(0,"Info",$Command & @CRLF & @CRLF & "Return = " & $Return & " @error = " & @error)
paw Posted 9 hours ago Posted 9 hours ago If you replace RunWait with ShellExecuteWait it should work.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now