On Wed, 20 Jul 2005 Dominik Fusina wrote:

I¹ve already post that topic. The first idea was to use ³system information² plug-in to get the type/kind of OS (Windows NT, 98, 2000, etc...). I need to
know what OS version running (not only the platform)
But that plug-in doesn¹t work on my MAC (???)... Impossible to build a
windows application with it.
Finally, I¹m always looking for a way to get these informations.
It¹s urgent now.
Is it possible to use getaltMBS or anything else ?
Any idea ?

One idea that I didn't see in this thread that might be worth having in the archives:

You could open a shell and get some info from any platform using either 'uname -a' on Mac or Linux, or 'ver' on Windows. Like the gestalt os versions on the mac, the kernel version isn't as pretty or as easily mapped to Redhat Enterprise WS 4.0 or Mac OS X 10.4.2, but it's a start. Also for those compiling for Linux, Redhat makes it easy to find the version by reading the text file /etc/redhat- release. Could be another simple check added to the following, I'd use that in conjunction with uname.

Steve

  // build system version info
  Dim sysInfo as string
  Dim s as shell
  s = new shell

  #If TargetWin32
    s.execute "ver"
    if (s.ErrorCode = 0) then
      sysInfo = s.result
    else
      sysInfo = "Windows"
    end


  #ElseIf TargetMacOS and Not(TargetMacOSClassic)
    s.execute "/usr/bin/uname -a"
    if (s.ErrorCode = 0) then
      sysInfo = s.result
    else
      sysInfo = "Mac"
    end

  #ElseIf TargetLinux
    s.execute "/bin/uname -a"
    if (s.ErrorCode = 0) then
      sysInfo = s.result
    else
      s.execute "/usr/bin/uname -a"
      if (s.ErrorCode = 0) then
        sysInfo = s.result
      else
        sysInfo = "Linux"
      end
    end
  #EndIf_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to