runas-win
v2.1.0
Published
Promise for run command with administrator privilege and hide mode.
Downloads
3
Readme
Runas-win
Promise for run command with administrator privilege and hide mode.
Installing
npm install runas-win
Use
import runasPromise from 'runas-win'
runasPromise('node', ['-v'], {hide:false, admin:true})
.then(()=>console.log('finish'));
runasPromise(command, args[, options])
options
Objecthide
Boolean - Hide the console window,true
by default.admin
Boolean - Run command as administrator,false
by default.