Created
December 6, 2016 12:45
-
-
Save Opiprog/8bb6f491578d4f23540ccd98e85288c3 to your computer and use it in GitHub Desktop.
Convert xls to xlsx using Windows cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Open a command prompt in windows and type the following | |
# This open the excelcnv.exe from the Office15 folder and converts MyFile.xls (from the in folder) to MyFile.xlsx (to the out folder) | |
"C:\Program Files (x86)\Microsoft Office\Office15\excelcnv.exe" -oice "C:\in\MyFile.xls" "C:\out\MyFile.xlsx” |
The 0365 Version... works with or without the trailing quote for me... Great job!
"C:\Program Files (x86)\Microsoft Office\root\Office16\excelcnv.exe" -oice "C:\Users\dbarry\Desktop\Staff.xls" "C:\Users\dbarry\Desktop\Staff.xlsx https://gist.github.com/Nefcanto @Nefcanto give this a try if this is still an issue.. or let me know if you have a better solution.
Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I need to convert xlsx to xlsb please suggest, I am trying with just changing the extention, it converting the file but data is corrupted