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;"
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.