Perform tasks using the nircmd.exe utility.
Examples and documentation can be found here.
$ npm install --save nircmd
const nircmd = require('nircmd');
nircmd('clipboard set "hey everybody"').then(() => {
console.log('Copied to clipboard')
});
$ npm install --global nircmd
$ nircmd --help
Examples
$ nircmd killprocess firefox.exe
$ nircmd clipboard set github.com
Returns a Promise that resolves usually nothing.
Required
Type: string
or array
Either a string with the command or an array with the command (one argument per value).
Type: object
Options to be passed on to child_process.execFile()
.
Required
Type: string
or array
Either a string with the command or an array with the command (one argument per value).
Type: object
Options to be passed on to child_process.spawn()
.
MIT © gillstrom