I am trying to start a program from a VS Code plugin through the child_process.exec() function but the program doesn't start. If I execute the same command from the cmd shell directly, the program runs normally...
I build the command like this:
var cmd ='start /d "' + process.env['DECKARD_PATH'] + '"' + " /b Deckard.exe"
// cmd resolves to 'start /d "C:\Program Files (x86)\Deckard" /b Deckard.exe'
and then try to execute:
child_process.exec(cmd, (err, stdout, stderr) => {
// Some stuff but no errors are triggered...
})
Note that Deckard.exe is an electron application with Windows UI.
Any suggestions would be greatly appreciated. Thanks in advance.
via Pascal Gula
No comments:
Post a Comment