idobatter/node-win32ole

WMI: Iterate over result with unknown columnset

thmoeller opened this issue · 0 comments

Hi,

i ty to use win32ole for wmi. I have som difficulties because in the samples the resulting rows are known. 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 m in wmires){
    for (var i=0;i<wmires[m].length;i++){
    console.log(wmires[m][i]);
    }
 }

But this produces some kind of conversion issues with V8Variant, which i do not understand.

Can you provide an example??