H
H
heito2021-04-30 13:35:55
Node.js
heito, 2021-04-30 13:35:55

How to get list of windows processes using node.js?

I want to get a list of running programs in windows. How to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2021-05-01
@Aetae

from the console.)

const { exec } = require('child_process')

exec(`tasklist /FO CSV`, (err, stdout, stderr) => {
  if (err || stderr)
    return console.error(err || stderr);

  return console.log(stdout); // csv-parser...
})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question