Cool thanks a lot. Always wanted to use win32api module too.
"Tony Meyer" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>> Is there any other way
>> of distinguishing between XP and 2000 I wonder?
>
> WinXP SP2:
>
>>>> import win32api
>>>> major, minor, spack, platform, ver_str = win32api.GetVersionEx()
>>>> print major, minor, spack, platform, ver_str
> 5 1 2600 2 Service Pack 2
>
> WinNT SP4:
>
>>>> import win32api
>>>> major, minor, spack, platform, ver_str = win32api.GetVersionEx()
>>>> print major, minor, spack, platform, ver_str
> 5 0 2195 2 Service Pack 4
>
> =Tony.Meyer
> 


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to