Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :: This batch file converts all the .doc files in a folder to .txt.
- ::
- :: 1. Make sure soffice.exe is in your PATH, e.g.
- :: Edit Environment Variables, add New in user variables, and add C:\Program Files (x86)\LibreOffice 5\program
- :: 2. Save this doc2txt.bat file to the folder alongside the files you want to convert.
- :: 3. Make sure Libreoffice is not running. (A bug prevents soffice from working while Libreoffice is open.)
- :: 4. Double-click doc2txt.bat.
- ::
- :: This file will save itself as .txt, too. You can delete that.
- ::
- FOR %%f in (.\*) DO soffice --convert-to txt "%%f" --headless
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement