nodejs win32ole module - iterate over result

21 views
Skip to first unread message

Thorsten Moeller

unread,
Aug 22, 2014, 1:04:53 PM8/22/14
to nod...@googlegroups.com

Hi,

i try to use win32ole for a wmi request. I have som difficulties, because in the provided samples the resulting rows are known and so properties can be adressed directly. But, how can i iterate over a result, and print the values, when i do not know the resulting columns in advance??

For example with a loop like this:

for (var prop in wmires){
    for (var i=0;i<wmires[prop].length;i++){
    console.log(wmires[m] + ': ' + wmires[prop][i]);
    }
 }

All my tries produce some kind of conversion issues with V8Variant, which i do not understand.

Can anybody provide an example??


Cheers


Thorsten

Reply all
Reply to author
Forward
0 new messages