I have an electron application and I need to execute a command line from a button click.
I’ve tried to use some modules like node-cmd e shelljs and also I´ve tried to use the child_process like that.
1 - var child_process = require(‘child_process’);
var output = child_process.execSync(‘cmd.exe node test.js’);
All this options didn´t work. Does any body have any ideia?