in reply to Re: Finding OS Version
in thread Finding OS Version and Win2K8

Thank you for the response Khen1950fx, however...

when I run the POSIX::uname()script (in the link you provided) on my Win2K8 Enterprise Server, it returns "Windows NT" and "6.0"

I'm looking for a simple command that actually dislays "Windows 2008" - preferably more simple than the one I posted in my second example.

Just to clarify my reasons... Windows 2K8 Enterprise Server handles logical drives differently than Windows 2K3, even though they are both MSWin32 systems. I have to be able to differentiate between the two.

Replies are listed 'Best First'.
Re^3: Finding OS Version
by Khen1950fx (Canon) on May 22, 2008 at 23:18 UTC
    I'm sorry that it didn't work right. I'm looking back at some of my other scripts. If I can find anything, I'll get back to you with it.

    update: This worked for me on XP:

    #!/usr/bin/perl use strict; use warnings; use Sys::Info; my $info = Sys::Info->new; my $os = $info->os; printf "Operating System is %s\n", $os->long_name;
      Hi, that part of Sys::Info checks for OS version and returns the name if it knows it, returns a generic string otherwise. I'll release a new version soon to support that version of windows...