mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 06:54:58 +00:00
Update powershell.js
This commit is contained in:
parent
8b1722cedb
commit
3008ea8813
|
@ -64,7 +64,7 @@ function PowershellInterface() {
|
|||
|
||||
this.exec = function(args) {
|
||||
if (this.execType != "ps1") {
|
||||
console.warn("The execType is not set 'ps1'. Will be forward this request to the default shell.");
|
||||
console.warn("The execType is not set 'ps1'. Will be forward it to the default shell.");
|
||||
SHELL.exec(this.target);
|
||||
return;
|
||||
}
|
||||
|
@ -113,7 +113,7 @@ function PowershellInterface() {
|
|||
|
||||
this.runAs = function() {
|
||||
if (this.execType != "ps1") {
|
||||
console.warn("The execType is not set 'ps1'. Will be forward this request to the default shell.");
|
||||
console.warn("The execType is not set 'ps1'. Will be forward it to the default shell.");
|
||||
return execCommand("Start-Process cmd \"/q /c " + SHELL.addslashes(SHELL.build(this.target)) + "\" -Verb RunAs");
|
||||
} else {
|
||||
return execCommand("Start-Process cmd \"/q /c " + SHELL.addslashes(SHELL.build(cmd)) + "\" -Verb RunAs");
|
||||
|
@ -138,7 +138,7 @@ exports.execScript = execScript;
|
|||
exports.execCommand = execCommand;
|
||||
exports.runAs = runAs;
|
||||
|
||||
exports.VERSIONINFO = "Powershell (powershell.js) version 0.1.2";
|
||||
exports.VERSIONINFO = "Powershell Interface (powershell.js) version 0.1.2";
|
||||
exports.AUTHOR = "abuse@catswords.net";
|
||||
exports.global = global;
|
||||
exports.require = global.require;
|
||||
|
|
Loading…
Reference in New Issue
Block a user