Query the following key
HKLM\Software\Microsoft\WindowsNT\Currentversion\CurrentVersion

If it's 4.0 you are running 4.0, 5.0 you are running Win2000

>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Deb
>Heller-Evans
>Sent: Wednesday, August 01, 2001 2:01 PM
>To: [EMAIL PROTECTED]
>Subject: Registry Identity crisis...
>
>
>I'm new to this list, so I apologize if this has been asked before.
>
>I've been asked to help our PC Guy fix a bunch of PCs that are
>pointing to incorrect WINS servers.  These machines are either
>Win2K or NT.  I am using Win32::TieRegistry with much success.
>
>My question: what would be considered the most efficient and
>reliable way to identify from the registry what OS I'm running
>my Perl program on?
>
>TIA,
>
>deb
>
>
>"If it dies, it's biology.  If it blows up, it's chemistry,
>and if it doesn't work, it's physics."
>                                        -- University bathroom graffito
>���
> ~
>_______________________________________________
>Perl-Win32-Admin mailing list
>[EMAIL PROTECTED]
>http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
>
>

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to