forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Find Windows version

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 4 Source Code
View previous topic :: View next topic  
Author Message
GeoTrail
Valued Contributor
Valued Contributor


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Sun Apr 13, 2003 2:12 pm    Post subject: Find Windows version Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sun Apr 13, 2003 3:14 pm    Post subject: Reply with quote

Thanks GeoTrail. This will come in handy. Wink
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Sun Apr 13, 2003 11:01 pm    Post subject: Reply with quote

nice one geotrail Very Happy

i found the following that may help you complete your code



Serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Mon Apr 14, 2003 12:29 am    Post subject: Reply with quote

Also Garrett once made a chart of these, not sure where they went. Confused
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Mon Apr 14, 2003 6:13 am    Post subject: Reply with quote

Yes, it's located here:

http://www.vdsworld.com/index.php?page=download&fileid=9


-Garrett
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 4 Source Code All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group