Shell Windows

Jan 28, 2013 at 3:30pm

Shell Windows

Hello to all.

I am using DOShack mxj object to get SYSTEMINFO from a Windows machine. In Max window I receive Product ID for the computer. How can I extract the number it displays inside Max? Is this a secure way to authenticate for each computer?

Thanks!

Stavros

#66261
Jan 28, 2013 at 6:23pm

i can’t tell you if it’s a secure way to find a unique ID. if theres a print object thats where the messages come from. if not try mxj syscommand. it is a little bit different but has outputs to evaluate results of the external command.O.

#238486
Jan 29, 2013 at 1:04pm

I am still trying to find how to get the specific number I want, as whenever I send SYSTEMINFO the mxj object spits out dozens of lines. However I can’t find how to extract only the number I want.

For example I use the same process in Mac using the shell object and I send the message:

ioreg -││grep IOPlatformSerialNumber

[shell]

regexp “=(.*)”

Which gives me the result I want. However, I have tried many different combinations but I can’t figure out how to extract the value.

Many thanks!

#238487

You must be logged in to reply to this topic.