mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-14 21:51:04 +00:00
update registry.js
This commit is contained in:
parent
71d28d1922
commit
1d6db047db
|
@ -112,4 +112,14 @@ scope.create = function(hiveKey, path, key, computer) {
|
|||
return createRet.returnValue == 0;
|
||||
}
|
||||
|
||||
scope.import = function(scriptName) {
|
||||
var arguments = [];
|
||||
|
||||
arguments.push("reg");
|
||||
arguments.push("import");
|
||||
arguments.push(scriptName + ".reg");
|
||||
|
||||
return SHELL.exec(arguments.join(' '));
|
||||
};
|
||||
|
||||
return scope;
|
|
@ -1,5 +0,0 @@
|
|||
@echo off
|
||||
|
||||
cscript app.js unlockfile
|
||||
|
||||
echo done
|
|
@ -1,9 +1,12 @@
|
|||
var PS = require("lib/powershell");
|
||||
//var REGISTRY = require("lib/registry");
|
||||
|
||||
return {
|
||||
main: function() {
|
||||
console.log("Starting unlock files...");
|
||||
PS.execCommand("dir | Unblock-File");
|
||||
//REGISTRY.import("app\\assets\\reg\\Add_URI_Scheme");
|
||||
//REGISTRY.import("app\\assets\\reg\\Allow_ADO_CORS");
|
||||
console.log("done");
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user