atom-archive / node-runas

Run command synchronously (with Administrator privilege)
MIT License
47 stars 20 forks source link

Runas

Run command synchronously with administrator privilege.

Installing

npm install runas

Building

Docs

runas = require 'runas'

runas(command, args[, options])

Launches a new process with the given command, with command line arguments in args.

This function is synchronous and returns the exit code when the command finished.

When the catchOutput option is specified to true, an object that contains exitCode, stdout and stderr will be returned.

Limitations