var exec = require('child_process').exec;
exec('AbiWord.exe —to=html testdoc.docx');
var exec = require('child_process').execFileSync;
var abi = 'brain/AbiWord/bin/AbiWord.exe';
var fs = require('fs');
var dir2read = ('test');
fs.readdir(dir2read, function(err,files){
if(err) throw err;
files.forEach(function(file){
if (!err)
exec(abi, [file, '--to=html']);
});
});