windows version in vb.net
-
Hi, Where can I find the version like on winver(cmd command) on the office it is 1511 but some registrysettings only exists from 1607 so I want to check if the version is ok. I found those:
Dim OSVer As Version = Environment.OSVersion.Version
Dim versie = My.Computer.Info.OSVersionBut thats not the info I need. Jan
-
Hi, Where can I find the version like on winver(cmd command) on the office it is 1511 but some registrysettings only exists from 1607 so I want to check if the version is ok. I found those:
Dim OSVer As Version = Environment.OSVersion.Version
Dim versie = My.Computer.Info.OSVersionBut thats not the info I need. Jan
In the console, I'd use "ver", not "winver"; the latter would open a UI, the first one just prints the version to stdout. Any program you run on the console, can also be started from your application, where you can fetch the results in a string.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
-
Hi, Where can I find the version like on winver(cmd command) on the office it is 1511 but some registrysettings only exists from 1607 so I want to check if the version is ok. I found those:
Dim OSVer As Version = Environment.OSVersion.Version
Dim versie = My.Computer.Info.OSVersionBut thats not the info I need. Jan
OK, look at the Build property of the Version object you're getting back. To enable all the versions to be available and not just knocked back to Windows 8, add an Application Manifest file to the application. Open that file, go down the compatibility section, and uncomment all the O/S GUID's:
Once you have the build number, compare that build to the list here[^] and you'll find which version of Windows you're running on.
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave Kreskowiak