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(.....) { ..... } -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/AAEA4210-A0A2-4B26-8D96-1930FC6DC140%40ryandesign.com. For more options, visit https://groups.google.com/d/optout.
