Friday, 2 June 2017

How to open exec path going up a directory in node.js?

I want to open an exe in node

exec('../logic_parser/logic_parser/bin/Debug/logic_parser.exe', (error, stdout, stderr) => {
  if (error) {
    console.error(`exec error: ${error}`);
    return;
  }
  console.log(`stdout: ${stdout}`);
  console.log(`stderr: ${stderr}`);
});

but it complains that .. is not a command. How can I fix this?

Thanks



via omega

No comments:

Post a Comment