help
help copied to clipboard
exec Command failed
Details
When I start the electron program, the background service test.exe is initialized. I start two test.exe asynchronously. The problem is that when I start the program for the first time, the exec error message "Command failed" is displayed. However, after I close the client, I run the test.exe service again without any problem. Then, after waiting for a while, about four hours or so, I repeat the above question again.
Node.js version
node V14.18.1
Example code
child_process.exec("start /b test.exe", (err, stdout, stderr) => {
console.log(stdout, "stdout");
console.log(stderr);
console.log(err);
})
Operating system
windows10 electron 11.0.1
Scope
Runtime
Module and version
Not applicable.