Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to detect if OS is Win 8 or 10
Message
From
24/08/2016 14:47:18
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows Server 2008 R2
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Miscellaneous
Thread ID:
01639890
Message ID:
01639901
Views:
85
Thanks. That's a lot of code to get what we want! I might "skip" for now as this customer says they are going to only have Win 10 machines soon (no Win 8) alongside their older Windows 7 so can take the simple (but inexact) way out at least for this app. Will keep your answer though for later.

Albert

>>Hi all,
>>
>>Need to detect if user is running on Win 8 vs. Win 10 vs Win 7. It seems that OS(1) returns "Windows 6.01" for Win 7 and for both Win 8 and Win 10 it returns "Windows 6.02" (for Win 8, I had to get someone else to run but they confirmed they were indeed running Win 8).
>>
>>Other than the build number returned with OS(5), is there any other function or system var that I can check to tell the difference?
>>
>
>https://social.msdn.microsoft.com/Forums/en-US/ba6983f6-c864-4051-9495-9e2cefdbeb5f/windows-10-returns-same-win-version-602-as-windows-81-using-vfp-os-function?forum=visualfoxprogeneral
Previous
Reply
Map
View

Click here to load this message in the networking platform