[Python-talk] recognizing XP systems
Ben Scott
dragonhawk at gmail.com
Mon Apr 17 17:02:24 EDT 2006
[de-lurk again -- this is getting to be a habbit]
On 4/17/06, Bill McGonigle <bill at bfccomputing.com> wrote:
> ('Microsoft', 'vm2k3', 'Windows', '5.2.3790', '', '')
>
> [1] is the machine name. Maybe [3] is reliable?
Reliable? Maybe, maybe not. It will always be there, but you can
expect the third number in the version ID (the "build") to change with
each Service Pack.
I know the COMMAND.COM command "VER" will give you a string
"Microsoft Windows XP", along with the version. (One could try and
capture the output of that, I suppose, but that's a really ugly
kludge.) Now, VER is just calling Windows standard (well, as standard
as Windows ever gets, anyway) library calls to get that product name.
What I don't know is if those library calls have been Pythonized
(yet).
-- Ben
More information about the Python-talk
mailing list