Advertisement
Guest User

Untitled

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