my code in node js side is-
const exec = require('child_process').exec;
var cmdString = 'start C:/myApp/dropbox';
const child = exec(cmdString,
(error, stdout, stderr) => {
console.log(`stdout: ${stdout}`);
console.log(`stderr: ${stderr}`);
if (error !== null) {
console.log(`exec error: ${error}`);
}
})
if i start the application from command prompt, I am able to open windows file explore on clicking a button.
But, if i start the application from windows service. I am not able to open file explorer.
Any idea what mistake i am doing in my coding side.