My objective is to take a large number of XLS files and convert them to XLSX. I can do it one line at a time with a simple operation, or do a large number of files in a batch if anyone knows a way.
I attempted to use most of the solutions on this Stack post, but it seems they no longer work, or apply. It is 9 years old, so a modern solution may be needed.
Code I tried:
p.save_book_as(file_name='C://Users//user1//Downloads//oldfile.xls',
dest_file_name='C://Users//user1//Downloads//oldfile.xlsx')
But this resulted in an error:
raise XLRDError('Unsupported format, or corrupt file: ' + msg)
xlrd.biffh.XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'<?xml ve'