Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
function ExecuteDosCommand() {
    try {
        var obj_ws = new ActiveXObject("WScript.Shell");
        obj_ws.Run('java -jar C:\\Documents and Settings\\PC\\hello.jar arg1 arg2 arg3',1,true);
 
        return true;
    }
    catch (e) {
        return GetExceptionMessage(e);
    }
}