How to determine OS version by LISP

How can I determine the OS on the running PC?

I use only LISP.

The (getenv "OS") gives Windows_NT in both WinXP an Win7.

 

Comments

  • I forgot to write that is is using Bricscad V6.

  • I think there is an old SDS DosLib out there that might do the trick. I have no idea where to get it though.


  • I'm using (getvar "platform")
  • Thank you - this works fine....

  • Just one problem:

    Windows XP and Windows Vista both reports the same: "Microsoft Windows NT Version 5.1"

    Anyone have something that can find these versions?

     

  • On my Vista "Microsoft Windows NT Version 6.0"  and XP - "Microsoft Windows NT Version 5.1". Checked on different machines.

    I have no ideas why did you received the same on both of OS...

This discussion has been closed.