Last active
September 16, 2019 13:23
-
-
Save JamesTheAwesomeDude/ebbe05c6ba4b827bc38da02b48264bef to your computer and use it in GitHub Desktop.
Open ReStructuredText in Microsoft Word
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET pythonfolder=%LocalAppData%\Programs\Python\Python37 | |
SET rst2odt="%pythonfolder%\Scripts\rst2odt.py" | |
SET msword="C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE" /t | |
SET flags=--strip-comments --report=none | |
%rst2odt% %flags% %1 "%~dpn1.odt" | |
REM TODO stackoverflow.com/q/13402898 | |
REM TODO stackoverflow.com/a/22194521 | |
start "" %msword% "%~dpn1.odt" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment