Domanda

Is it possible to convert a xls or csv file on MSWindows without opening Calc (Libre office) from command line.

This is partial solution :

path = "C:\Program Files (x86)\LibreOffice 4\program"

scalc --invisible -convert-to dbf C:\mydata\MATIKGL.xls

But the batch file must be in c:\mydata. Is it possible to set the input and output folder in a second line?

Reference

https://help.libreoffice.org/Common/Starting_the_Software_With_Parameters

È stato utile?

Soluzione

Make sure you have C:\Program Files\LibreOffice 4.n\programs in the path.

Use the program soffice or scalc. You can get help with scalc --help

Use the option --convert-to dbf

See also Libreoffice convert-to not working

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top