Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: How to determining if I am on .NET versus Windows 2003

by Necos (Friar)
on Apr 05, 2003 at 10:31 UTC ( [id://248276]=note: print w/replies, xml ) Need Help??


in reply to How to determining if I am on .NET versus Windows 2003

Hmmm... I recall there being a function in the Win32::AdminMisc module that would return all of the information about an OS, including the build number. Unfortunately, I'm pretty sure the module is no longer under development. However, I do believe the source is available from Dave Roth's website. You can always just recompile the source to match your perl distribution and use that (if I recall, it's one of those XS-based modules).

I'm not sure if ActiveState has included a GetOSBuild-type function in the Win32 module (I still use 522 on my Windows machines) for the newer versions of their Perl. Also, a word of caution. The Win32::AdminMisc module was built before WinXP. So, some of the tricks Dave used to build the module may be broken in the newer include files (in MS VC++). However, it should be possible to backtrack and update the code dependencies if that's the case.

Hope that helps some,

Theodore Charles III
Network Administrator
Los Angeles Senior High
email->secon_kun@hotmail.com
perl -e "map{print++$_}split//,Mdbnr;"

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://248276]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-26 07:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found