Blame view

js/lib/JSBuilder/src/Cmd.js 232 Bytes
16035364   Benjamin Renard   First commit
1
2
3
4
5
6
7
8
9
10
11
Cmd = {
    execute: function(cmd) {
        if (Platform.isWindows) {
            var stream = new Stream('exec://' + cmd);
            stream.close();   
        }
        else {
            system.execute(cmd);
        }
    }
};