I found a solution to this problem.
Bank2CSV Pro converts various bank, credit cards and investment files (QIF, OFX, QFX, QBO, OFC) into CSV format (the file will become a table, like a regular spreadsheet with rows like transactions). It supports command line mode:
bank2csv_pro.exe input.ofx output.csv
See http://www.propersoft.net/
source share