Thank you! Yes, i was looked the documentationbut made ​​a mistake in

 exec("D:/PROGRAMS/Dev/Zeal/zeal.exe", ["--query searchText"]

Thank you! Closed -)



вторник, 21 октября 2014 г., 21:53:16 UTC+4 пользователь ryandesign написал:
>
>
> 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/bdb0e8ab-6d59-4907-bed4-11877ea24d16%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to