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.
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...