Open external file with OS' default application (docx with Word, etc.) using NodeJS and Electron
<p>I'm using NodeJS/Electron for a desktop app.</p>

<p>What I wanna do, is to open a file with it's OS' default application, like .docx with Word.</p>

<p>What I tried so far are approaches using child_process.spawn, .exec or .execFile but I don't get anything.</p>

<p>Here is my actual code:</p>

<pre><code>var fs = require('fs'),
    cp = require('child_process');

cp.spawn(__dirname + '/test.docx');
</code></pre>

<p>Thanks in advance.</p>