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 


Windows version (how to tell help)

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
DW
Contributor
Contributor


Joined: 21 Mar 2003
Posts: 175
Location: UK

PostPosted: Fri Feb 13, 2004 10:33 am    Post subject: Windows version (how to tell help) Reply with quote

Say I have a program that needs to work two different ways based on the OS you are running, how can I tell the version of windows?

I want my program to run a command one way if its a 9x/nt4 host and another if its a 2k/xp/2k3 host.

How?
Back to top
View user's profile Send private message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Fri Feb 13, 2004 10:46 am    Post subject: Reply with quote

Use @SYSINFO(WINVER) to get your windows version number
You can also use:
@SYSINFO(ISNT) ifyour intention is only to know if the OS belongs to NT family.

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
DW
Contributor
Contributor


Joined: 21 Mar 2003
Posts: 175
Location: UK

PostPosted: Fri Feb 13, 2004 11:22 am    Post subject: Reply with quote

@SYSINFO(ISNT) does not work.

I can get the version number of windows though.

Does anyone have a list i could use for all the versions of windows?
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Fri Feb 13, 2004 12:03 pm    Post subject: Reply with quote

There's a Windows version chart at the bottom of this page:

http://www.computerhope.com/whow.htm

Not exactly sure what @sysinfo(WINVER) returns on all of
them though.

Windows 95 returns 4.0 Wink

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
DW
Contributor
Contributor


Joined: 21 Mar 2003
Posts: 175
Location: UK

PostPosted: Fri Feb 13, 2004 12:46 pm    Post subject: Reply with quote

Cool thank you
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Feb 13, 2004 1:04 pm    Post subject: Reply with quote

I believe @sysinfo(ISNT) only is available in VDS 5 -

You can also see Garrett's Windows version chart here:
http://garrett.vdsworld.com/winver.htm

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help 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