vendredi 26 août 2016

Run a Batch File OnClick of Button from DOM in Node-Webkit App

I cannot seam to figure this out please help me run "run.cmd" onclick of button from my nwjs application.

<button onclick="runHelperProcess()">Run Process</button>

.

<script type="text/javascript">
    function runHelperProcess() {
        gui.Shell.openItem('run.cmd');
    }
</script>

run.cmd is located in the root dir of the nw application.

Aucun commentaire:

Enregistrer un commentaire