Link to home
Start Free TrialLog in
Avatar of Simon Allaway
Simon AllawayFlag for United Kingdom of Great Britain and Northern Ireland

asked on

How to convert XLSX to CSV via command prompt?

Hi

Please can you help me convert a file call distlistcontacts.xlsx to distlistcontacts.csv located in c:\o365update\ via command prompt.  I have tried a scripts on the web and cant get them to run. Excel is not installed on the pc where the batch file will be scheduled to run from .

Regards


Simon
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

You can do it with SoftInterface.com - Convert XLSX to CSV or a macro that you call via VBS

Here is the former, if it doesn't work I can post a macro
https://stackoverflow.com/questions/5256733/convert-xlsx-file-to-csv-using-batch
http://www.softinterface.com/Convert-XLS/Features/Convert-XLSX-To-CSV.htm
"c:\Program Files\Softinterface, Inc\Convert XLS\ConvertXLS.EXE" /S"C:\MyExcelFile.xlsx" /F51 /N"Sheet1" /T"C:\MyExcelFile.CSV" /C6 /M1 /V

Open in new window

Avatar of Simon Allaway

ASKER

Hi Shaun

VBS file would be good.  I want to keep it as clean as possible.  I don't really want to install any additional software.

Regards


Simon
ASKER CERTIFIED SOLUTION
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
so will I be able to use this in an unattended scenario as the main script will be working about 2am?
sorry I will be adding this to a batch file that is set in the scheduled tasks