On Oct 21, 2014, at 1:20 AM, nodeusers wrote:
> Please tell me how to call the file with some query. I need to run "D:/PROGRAMS/Dev/App/app.exe" --query 'some search'
>
> Completely confused, and whether, it is possible to make?
Did you check the documentation?
http://nodejs.org/api/child_process.html#child_process_child_process_execfile_file_args_options_callback
It says the function's signature is:
child_process.execFile(file, [args], [options], [callback])
It seems like the correct invocation, assuming you don't need any options, would therefore be:
var child_process = require('child_process');
child_process.execFile('D:/PROGRAMS/Dev/App/app.exe', ['--query', 'some search'], callback);
function callback(.....) {
.....
}