Skip to content

Delete \input File after conversion

Toby Allen edited this page Dec 27, 2019 · 2 revisions

Sometimes it may be desirable to have the input file deleted after conversion.

I use this when I generate the docs files from a database source and convert them to .txt for archiving by git. I dont require the doc files afterwards .

docto -f c:\files\document.doc -o c:\outfiles\document.txt -t wdFormattxt -R true

or

docto -f c:\files\document.doc -o c:\outfiles\document.txt -t wdFormattxt --deletefiles true

The true here is required, otherwise the delete will not happen.