Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wmic is unable to retrieve process list #44

Open
Thodor20 opened this issue Dec 8, 2017 · 2 comments
Open

Wmic is unable to retrieve process list #44

Thodor20 opened this issue Dec 8, 2017 · 2 comments

Comments

@Thodor20
Copy link

Thodor20 commented Dec 8, 2017

I'm getting a problem with wmic. I'm running on Windows 7 and I noticed Wmic wasn't working with the original command using /format:csv as my pc is on a lithuanian locale and only had the en-US csv.xsl. So I changed the path to the en-US csv.xsl but it's still not working, however if I run the command in the command line directly and not using node it's working perfectly fine.

Am I missing something here?

Below is the output of the node application.

(node:7044) Warning: N-API is an experimental feature and could change at any ti
me.
[17:12:57] Connected to Discord! (385061381344591872)
[17:12:59] Failed to fetch Spotify data: { err:
   { Error: Command failed: WMIC process list /format:"%WINDIR%System32wbemen-US
csv"
Invalid XSL format (or) file name.

    at ChildProcess.exithandler (child_process.js:272:12)
    at ChildProcess.emit (events.js:159:13)
    at maybeClose (internal/child_process.js:943:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
     killed: false,
     code: 44210,
     signal: null,
     cmd: 'WMIC process list /format:"%WINDIR%System32wbemen-UScsv"' },
  msg: 'unable to enumerate processes' }         
@cernodile
Copy link
Collaborator

Did you try reading this part of the readme?

@Thodor20
Copy link
Author

Thodor20 commented Jan 9, 2018

I did already try to set the maxBuffer though it did not have any effect, it kept giving the Invalid XSL format error.
I tested it with the:

  • lithuanian csv - no buffer = error
  • lithuanian csv - with buffer = error
  • en-us csv - no buffer = error
  • en-us csv - with buffer = error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants