mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-12 04:31:04 +00:00
Update system.js
This commit is contained in:
parent
e776d22dd8
commit
dee71fc0f6
|
@ -99,4 +99,18 @@ scope.getNetworkInterfaces = function() {
|
|||
return rows;
|
||||
};
|
||||
|
||||
scope.getCurrentProcesses = function() {
|
||||
var processes = [];
|
||||
var response = SHELL.exec("tasklist.exe");
|
||||
|
||||
var lines = response.split(/\r?\n/);
|
||||
for(var i in lines) {
|
||||
var line = lines[i];
|
||||
var values = line.split(' ');
|
||||
processes.push(values);
|
||||
}
|
||||
|
||||
return processes;
|
||||
};
|
||||
|
||||
return scope;
|
||||
|
|
Loading…
Reference in New Issue
Block a user