neekey / ps

A Node.js module for looking up running processes
MIT License
128 stars 41 forks source link

Can't list process on a 64bit Windows 7 Pro (french locale) #63

Open Congelli501 opened 7 years ago

Congelli501 commented 7 years ago

I have the error process - cannot find alias on the wmic process (in french process - Alias introuvable.).

I managed to get it working again by changing line 67 from

CMD.stdin.write('wmic process get ProcessId,ParentProcessId,CommandLine \n');

to

CMD.stdin.write('wmic path win32_process get ProcessId,ParentProcessId,CommandLine \n');

According the the command line, it may only return 32 bit processes, but it works for me. As I'm not a Windows user, I can't help more, sorry for that...

neekey commented 7 years ago

@Congelli501 Really thanks for reporting this edge case, I will take a look