M
M
MaXvs2015-10-19 09:29:31
JavaScript
MaXvs, 2015-10-19 09:29:31

Running an external program, nw.js?

There <button id="run" ... >is a click to run exe (executable file) example: test.exe.

/js
    - jquery.js
    - main.js
/test
    - test.exe // <= файл который требуется запустить ./test/test.exe
- index.html
- package.json

$(document).ready(function () {
    $('#run').click(function () {
        // код запуска test.exe
    });
});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aves, 2015-10-19
@MaXvs

require('child_process').exec('./test/test.exe');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question