node-process-windows icon indicating copy to clipboard operation
node-process-windows copied to clipboard

Fix handling of space in executable path

Open manu-st opened this issue 6 years ago • 0 comments

Fix issue #9 by surrounding the executable path with ".

Otherwise you get the following error:

{ Error: Command failed: C:\Program Files\app\resources\app.asar\node_modules\node-process-windows\windows-console-app\windows-console-app\bin\Release\windows-console-app.exe --processinfo
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

    at ChildProcess.exithandler (child_process.js:287:12)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Socket.stream.socket.on (internal/child_process.js:346:11)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at Pipe._handle.close [as _onclose] (net.js:554:12)
  killed: false,
  code: 1,
  signal: null,
  cmd: 'C:\\Program Files\\app\\resources\\app.asar\\node_modules\\node-process-windows\\windows-console-app\\windows-console-app\\bin\\Release\\windows-console-app.exe --processinfo' }

manu-st avatar Dec 19 '18 18:12 manu-st