Get type of MS Windows

Johannes's icon

Hi,

I am looking for a way of getting the exact MS Win type (XP, Vista Win7) inside Max. Even the Windows Environment Variables are only telling me 'Windows NT'.
Can anybody help?

Thanks in advance

Best Regards,
Johannes

mesa.elech/tele's icon

how about sending [doshack] "ver"?

Luke Hall's icon

Maybe [gestalt] will be helpful, more so on a macintosh than windows I would imagine though.

lh

Ben Bracken's icon

in js, you can get max.os and max.osversion.

It should be noted that on Windows, the osversion is in hexadecimal.

For example, on my Windows 7 machine, hex 259 is returned, which is 601. Win 7 is Windows version 6, and minor version 1, hence the '601'.

Here is one explanation of Windows version numbers:

-Ben