shell execute

Develop and Deploy Native Apps for Windows, OS X, Linux, Unix ...

shell execute

Postby sedrok » Fri Jul 11, 2014 12:44 pm

shell execute:

javascript code
var childProcess = require('child_process');
childProcess.exec('wscript.exe C:\\test\\1.vbs',
function (error, stdout, stderr) {
xui.echo('stdout: ' + stdout);
xui.echo('stderr: ' + stderr);
if (error !== null) {
xui.echo('exec error: ' + error);
}
});
sedrok
 
Posts: 26
Joined: Tue Jun 03, 2014 12:50 pm

Return to CrossUI for Desktop Apps

Who is online

Users browsing this forum: No registered users and 5 guests

cron