使用Microsoft Office Compitablity Pack的excelcnv将xlsx转换为xls

时间:2023-01-15 11:09:09

The internet says that you can convert xlsx files to xls files using Microsoft Office Compitablity like this:
"C:\Program Files\Microsoft Office\Office14\excelcnv" -nme -oice D:\test\new.xlsx D:\test\old.xls
However, this works backwards - it converts xls files to xlsx files. Does anyone know the excelcnv switches to convert xlsx to xls?

互联网说您可以使用Microsoft Office Compitablity将xlsx文件转换为xls文件,如下所示:“C:\ Program Files \ Microsoft Office \ Office14 \ excelcnv”-nme -oice D:\ test \ new.xlsx D:\ test \ old.xls但是,这可以向后工作 - 它将xls文件转换为xlsx文件。有谁知道excelcnv开关将xlsx转换为xls?

2 个解决方案

#1


2  

For me, using the compatibility (conversion) pack for Office 2003, simply switching the places of the parameters in the example you cite works; e.g. if this also works for ~\Office14 (which I assume and hope it does), change the command this way:

对我来说,使用Office 2003的兼容性(转换)包,只需在您引用的示例中切换参数的位置;例如如果这也适用于〜\ Office14(我假设并希望它),请以这种方式更改命令:

"C:\Program Files\Microsoft Office\Office14\excelcnv" -nme -oice D:\test\old.xls D:\test\new.xlsx

In my case, the particular command that gets it to work, which I found yonder (and simply reversed the parameters like so), is this:

在我的情况下,让我发现它的特定命令,我发现yonder(并简单地颠倒了这样的参数),是这样的:

"C:\Program Files (x86)\Microsoft Office\Office12\excelcnv.exe" -oice "C:\scripts\test1.xls" "C:\scripts\test1.xlsx"

#2


0  

I came across this question whilst looking for a way to convert XLSX to XLS using the command line. I couldn't get the solution presented here to work, but I managed to find a solution by installing Libre Office 5 then using the command:

我在寻找使用命令行将XLSX转换为XLS的方法时遇到了这个问题。我无法让这里提供的解决方案起作用,但我设法通过安装Libre Office 5找到解决方案,然后使用命令:

"C:\Program Files\libreoffice 5\program\soffice.exe" --convert-to xls "original-file.xlsx"

This outputted the file as "original-file.xls"

这输出文件为“original-file.xls”

#1


2  

For me, using the compatibility (conversion) pack for Office 2003, simply switching the places of the parameters in the example you cite works; e.g. if this also works for ~\Office14 (which I assume and hope it does), change the command this way:

对我来说,使用Office 2003的兼容性(转换)包,只需在您引用的示例中切换参数的位置;例如如果这也适用于〜\ Office14(我假设并希望它),请以这种方式更改命令:

"C:\Program Files\Microsoft Office\Office14\excelcnv" -nme -oice D:\test\old.xls D:\test\new.xlsx

In my case, the particular command that gets it to work, which I found yonder (and simply reversed the parameters like so), is this:

在我的情况下,让我发现它的特定命令,我发现yonder(并简单地颠倒了这样的参数),是这样的:

"C:\Program Files (x86)\Microsoft Office\Office12\excelcnv.exe" -oice "C:\scripts\test1.xls" "C:\scripts\test1.xlsx"

#2


0  

I came across this question whilst looking for a way to convert XLSX to XLS using the command line. I couldn't get the solution presented here to work, but I managed to find a solution by installing Libre Office 5 then using the command:

我在寻找使用命令行将XLSX转换为XLS的方法时遇到了这个问题。我无法让这里提供的解决方案起作用,但我设法通过安装Libre Office 5找到解决方案,然后使用命令:

"C:\Program Files\libreoffice 5\program\soffice.exe" --convert-to xls "original-file.xlsx"

This outputted the file as "original-file.xls"

这输出文件为“original-file.xls”