| View previous topic :: View next topic |
| Author |
Message |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Fri Feb 13, 2004 10:33 am Post subject: Windows version (how to tell help) |
|
|
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 |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Fri Feb 13, 2004 10:46 am Post subject: |
|
|
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
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Fri Feb 13, 2004 11:22 am Post subject: |
|
|
@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 |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Fri Feb 13, 2004 12:03 pm Post subject: |
|
|
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
Cheers, Mac  _________________ 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 |
|
 |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Fri Feb 13, 2004 12:46 pm Post subject: |
|
|
| Cool thank you |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Feb 13, 2004 1:04 pm Post subject: |
|
|
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 |
|
 |
|