Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. windows version in vb.net

windows version in vb.net

Scheduled Pinned Locked Moved Visual Basic
csharpannouncementworkspace
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JR212
    wrote on last edited by
    #1

    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.OSVersion

    But thats not the info I need. Jan

    L D 2 Replies Last reply
    0
    • J JR212

      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.OSVersion

      But thats not the info I need. Jan

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • J JR212

        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.OSVersion

        But thats not the info I need. Jan

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups