Thursday, September 14, 2017

Batch convert office documents

This took me a while from a few different sources. I need to convert all Powerpoint 95 docs in a directory and subdirectories - putting the converted file in the same folder as the source. My final Windows 10 CMD command: for \R %f in (*.ppt) do echo "C:\Program Files\LibreOffice 5\program\soffice.exe" --convert-to pptx:"Impress MS PowerPoint 2007 XML" --outdir "%~dpf." "%f" & timeout 60 This uses LibreOffice.
I shmaak SA Blogs, sorted with Amatomu.com