Skip to content

pokevas/node-runas-win

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 Object
    • hide Boolean - Hide the console window, true by default.
    • admin Boolean - Run command as administrator, false by default.

About

Promise for run command with administrator privilege and hide mode.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published