View previous topic :: View next topic |
Author |
Message |
GeoTrail Valued Contributor
Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Sun Apr 13, 2003 2:12 pm Post subject: Find Windows version |
|
|
Here is an easy way to find the users Windows version.
I haven't added Windows NT 3 and 4 because I'm not sure of it's version number. Please add that here if you should know what version number NT 3 and 4 are using.
Code: | rem This script helps you determen which Windows version the user is running.
rem ****************************************************************************
rem * 4.0 - Windows 95
rem * 4.1 - Windows 98
rem * 5.0 - Windows 2000
rem * 5.1 - Windows XP
rem * 5.2 - Windows 2003
rem ****************************************************************************
%V = @SYSINFO(WINVER)
Title Windows Version
If @equal(4.0,%V)
INFO You are running Microsoft Windows 95
Goto Close
End
If @equal(4.1,%V)
INFO You are running Microsoft Windows 98
Goto Close
End
If @equal(5.0,%V)
INFO You are running Microsoft Windows 2000
Goto Close
End
If @equal(5.1,%V)
INFO You are running Microsoft Windows XP
Goto Close
End
If @equal(5.2,%V)
INFO You are running Microsoft Windows 2003
Goto Close
End
:Close
Exit |
_________________
|
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sun Apr 13, 2003 3:14 pm Post subject: |
|
|
Thanks GeoTrail. This will come in handy. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
Serge Professional Member
Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Sun Apr 13, 2003 11:01 pm Post subject: |
|
|
nice one geotrail
i found the following that may help you complete your code
Serge _________________
|
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Mon Apr 14, 2003 12:29 am Post subject: |
|
|
Also Garrett once made a chart of these, not sure where they went. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
|
Back to top |
|
|
|