The plot thickens ...
https://msdn.microsoft.com/en-us/library/windows/desktop/ms724439(v=vs.85).a spx
From that link ...
With the release of Windows 8.1, the behavior of the GetVersion API has changed in the value it will return for the operating system version. The value returned by the GetVersion function now depends on how the application is manifested.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms724429(v=vs.85).a spx
To obtain the full version number for the operating system, call the GetFileVersionInfo function on one of the system DLLs, such as Kernel32.dll, then call VerQueryValue to obtain the \StringFileInfo\<lang><codepage>\ProductVersion subblock of the file version information.
From that I tried ....
oFSO = CREATEOBJECT("scripting.filesystemobject") ? oFso.GetFileVersion("C:\Windows\System32\kernel32.Dll")
On Win 7 Ultimate x64 machine I get "6.1.7601.19018" returned.
VFP : OS(3) 6 | OS(4) 1 | OS(5) 7601 so seems to line up fairly well.
Give it a go on WIN 10 - be interested to see if it works.
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of mbsoftwaresolutions@mbsoftwaresolutions.com Sent: Wednesday, 24 May 2017 3:38 PM To: profoxtech@leafe.com Subject: RE: How to tell between Win8 and Win10 using Fox commands?
On 2017-05-23 20:05, Darren wrote:
I don't have Windows 10 but try this ... http://www.news2news.com/vfp/?example=22&function=29
Be good to know if that works OK on 10 also - don't see why it shouldn't.
Yes but it looks as though 8 and 10 are reporting the same per the Fox Wiki. I'll try your link Thursday and report back.
[excessive quoting removed by server]