Convert XLS to CSV on command line

后端 未结 15 2325
臣服心动
臣服心动 2020-11-22 12:11

How could I convert an XLS file to a CSV file on the windows command line.

The machine has Microsoft Office 2000 installed. I\'m open to installing OpenOffice if it\

15条回答
  •  梦谈多话
    2020-11-22 12:41

    A small expansion on ScottF's groovy VB script: this batch file will loop through the .xlsx files in a directory and dump them into *.csv files:

    FOR /f "delims=" %%i IN ('DIR *.xlsx /b') DO ExcelToCSV.vbs "%%i" "%%i.csv"
    

    Note: You may change extension .xlsx to .xls andname of script ExcelToCSV to XlsToCsv

提交回复
热议问题