Convert .CSV to .XLSX using command line

前端 未结 5 998
-上瘾入骨i
-上瘾入骨i 2020-12-10 14:45

I\'m looking for a way to batch-convert a series of .csv files to .xlsx using the command line.

I have tried a bunch of different VBScripts

5条回答
  •  失恋的感觉
    2020-12-10 15:34

    Are you on Windows or Linux/Mac?

    I might have a solution for you either way.

    Here is the solution to your problems without the programs commented below:

    https://social.msdn.microsoft.com/Forums/en-US/74df1378-7c0c-4c0f-b174-fa97a5c2969b/convert-csv-to-xlsx?forum=Vsexpressvb

    EDIT So here is the basic solution:

    Basically you apply a filter (which in the case would be the xlsx filter) from the directory where your file is located.

    Nvm this I just saw you are on Windows ./directory --headless --convert-to xlsx:"Calc MS Excel 2007 XML" file.csv

    in this case "Calc MS Excel 2007 XML" is the filter.

    That works for single files, let me add batch in a sec.

提交回复
热议问题