mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-19 08:01:04 +00:00
Update system.js
This commit is contained in:
parent
27c3c6fad9
commit
9ad7d904e5
|
@ -50,7 +50,7 @@ exports.isElevated = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.getOS = function() {
|
exports.getOS = function() {
|
||||||
return WMI.execQuery("SELECT * FROM Win32_OperatingSystem").fetch().get("Caption").rtrim();
|
return WMI.execQuery("SELECT * FROM Win32_OperatingSystem").fetch().get("Caption").trim();
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.getDCName = function() {
|
exports.getDCName = function() {
|
||||||
|
@ -71,7 +71,7 @@ exports.getUUID = function() {
|
||||||
|
|
||||||
exports.getCurrentWorkingDirectory = function() {
|
exports.getCurrentWorkingDirectory = function() {
|
||||||
try {
|
try {
|
||||||
cwd = SHELL.exec("cd", "cwd.txt").rtrim();
|
cwd = SHELL.exec("cd", "cwd.txt").trim();
|
||||||
return cwd;
|
return cwd;
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user