soyuka / pidusage

Cross-platform process cpu % and memory usage of a PID
MIT License
512 stars 55 forks source link

Does wmic is required on windows? #124

Closed LeonardoRick closed 3 years ago

LeonardoRick commented 3 years ago

I'm currently trying to run on a windows machine and get the error spawn wmic ENOENT.

Is that mandatory?

soyuka commented 3 years ago

yes unless you know another way of having these stats on windows? also it should be installed in almost every windows OS what is yours?

LeonardoRick commented 3 years ago

it's windows 10. I'm trying to run this library on several different win 10 machines and sometimes the environtment path is not properly setup. I guess my solution is to keep having this dependecy to update variables to properly match the executable.

In case it's not installed, whats the trustable way to install wmic?

soyuka commented 3 years ago

I don't think there's a way to install it as it should be present on your windows (it's used by the task manager IIRC) maybe an administrator issue?

hirios commented 3 years ago

I'm currently trying to run on a windows machine and get the error spawn wmic ENOENT.

Is that mandatory?

Find out if Windows is modified? for example, those lite versions of Windows

aliuq commented 2 years ago

wmic seems removed on windows 11