mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-03-12 00:45:14 +00:00
Update system.js
This commit is contained in:
parent
27c3c6fad9
commit
9ad7d904e5
|
@ -50,7 +50,7 @@ exports.isElevated = 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() {
|
||||
|
@ -71,7 +71,7 @@ exports.getUUID = function() {
|
|||
|
||||
exports.getCurrentWorkingDirectory = function() {
|
||||
try {
|
||||
cwd = SHELL.exec("cd", "cwd.txt").rtrim();
|
||||
cwd = SHELL.exec("cd", "cwd.txt").trim();
|
||||
return cwd;
|
||||
} catch (e) {}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user