From: Kari on
What function should I use foer testing Windows version? There have been
problems (as you probably know) with my apps running on XP/Vista/7. I could
fix some of them on the fly if I only know the version the user has.

If there is a function, what are the return codes for the versions?

Kari


From: John Martens on
os()


Op 8-2-2010 16:05, Kari schreef:
> What function should I use foer testing Windows version? There have been
> problems (as you probably know) with my apps running on XP/Vista/7. I could
> fix some of them on the fly if I only know the version the user has.
>
> If there is a function, what are the return codes for the versions?
>
> Kari
>
>
From: dlzc on
Dear Kari:

On Feb 8, 8:05 am, "Kari" <kari.hyvo...(a)dbcoy.com> wrote:
> What function should I use foer testing
> Windows version?

If you RUN the command line VER, and parse its output, you will get
"[Version 5.1.nnnn]" for XP, and "[Version 6.1.nnnn]" for Windows 7.
(Presumably Vista returns "[Version 6.0.nnnn]".)

.... if you don't get any integral-to-VO answers...

David A. Smith
From: Karl Faller on
Kari,
have a look at OS() in the help...

Karl

>What function should I use foer testing Windows version? There have been
>problems (as you probably know) with my apps running on XP/Vista/7. I could
>fix some of them on the fly if I only know the version the user has.
>
>If there is a function, what are the return codes for the versions?
>
>Kari
>
From: Kari on
Thanks to everyone!

Kari