Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to detect if OS is Win 8 or 10
Message
De
24/08/2016 15:29:06
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows Server 2008 R2
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Divers
Thread ID:
01639890
Message ID:
01639903
Vues:
74
Hi again Sorin,

So the code was not that long once copied into my functions. I could not "leave it be" figuring some day I would need to know it and I would have to go searching all over again. Works great. Couple small errors in the sample code (no return value on the main function and a couple of "messText" vars not declared local) but those were easy to find and fix.

Noticed you still have a customer on Novell. What I started on. There were things about Novell that were better right out of the box (as far as directory/file permissions and seeing who did what - all things you can get working in Windows (i.e. auditing) but ahead of its time in some ways). But then, lots of things a lot harder. Overall, glad I am not supporting it anymore.

Thanks again.
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform