-
-
Notifications
You must be signed in to change notification settings - Fork 15
WMI Query
Namhyeon, Go edited this page Jun 5, 2022
·
2 revisions
var WMI = require("lib/wmi");
var getProcesses = function() {
return WMI.execQuery("Select * From Win32_Process").fetchAll();
};
var WMI = require("lib/wmi");
var ping = function(address) {
return WMI.execQuery("Select * From Win32_PingStatus where address='" + address + "'").fetch().get("ResponseTime");
};
console.log(ping("1.1.1.1"));
var WMI = require("lib/wmi");
var ping = function(address) {
var sqlString = squel.select("Win32_PingStatus").where("address = ?", address).toString();
return WMI.execQuery(sqlString).fetch().get("ResponseTime");
};
console.log(ping("1.1.1.1"));
This document may contain outdated content. For the latest information, please contact us directly or refer to the webpage below.