var forfiles = childProcess.spawn('forfiles', ['/P', zipItem.SOURCE, '/S', '/D', zipItem.aftterTimeValue.toFormat("+YYYY/MM/DD"), '/C', 'cmd /c echo @path' ]); forfiles.stdout.on('data', function (data) { var filePathList = iconv.decode(data, "Shift_JIS").split(/[\r\n]+/); if (filePathList) { for (var i = 0; i < filePathList.length; i++) { var filePath = filePathList[i] .replace(/^"/, '') .replace(/"$/, ''); if (filePath) { // do something } } } });