const child = exec('C:/Games/папка games/something.lnk', callback);
the game tries to start, but after a few seconds the window closes. A listener to the exit event on the child after departure writes
const child = exec('C:/Games/папка games/something Tamaha', callback)
child process exited with code 3221225477 and signal null
and nothing else interesting. execFile, spawn instead of exec do not work. Simple programs (excel, calc, cmd) launched through the exe and work, and game in any.
Error: Command failed: C:\Games\папка games\something timehe at ChildProcess.exithandler (child_process.js:308) at ChildProcess.emit (events.js:203) at maybeClose (internal/child_process.js:1021) at Process.ChildProcess._handle.onexit (internal/child_process.js:283)
I don't fully understand what it is in principleit sets the "working directory of process", all relative paths used in the startup program will be calculated relative to this
Find more questions by tags Node.js