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. C#
  4. Windows Name

Windows Name

Scheduled Pinned Locked Moved C#
csharpsysadminwindows-admintutorialquestion
3 Posts 2 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.
  • M Offline
    M Offline
    M Riaz Bashir
    wrote on last edited by
    #1

    Hi, Kindly let me know that, How may I get the name of Windows Operation system using C#? Actually I want to know that, what windows is being used. Example: Windows XP or Windows Server 2003 or Windows Server 2008 or Windows Vista or Windows 7 Thank you (Riaz)

    W 1 Reply Last reply
    0
    • M M Riaz Bashir

      Hi, Kindly let me know that, How may I get the name of Windows Operation system using C#? Actually I want to know that, what windows is being used. Example: Windows XP or Windows Server 2003 or Windows Server 2008 or Windows Vista or Windows 7 Thank you (Riaz)

      W Offline
      W Offline
      Wayne Gaylard
      wrote on last edited by
      #2

      You need to use the OSVersion Property of the System.Environment Class. Here is an MSDN article on how to do it How to determine the Windows version by using Visual C#[^]. (Hint - it was the first hit in a Google search). Hope this helps

      ...and I have extensive experience writing computer code, including OIC, BTW, BRB, IMHO, LMAO, ROFL, TTYL.....

      M 1 Reply Last reply
      0
      • W Wayne Gaylard

        You need to use the OSVersion Property of the System.Environment Class. Here is an MSDN article on how to do it How to determine the Windows version by using Visual C#[^]. (Hint - it was the first hit in a Google search). Hope this helps

        ...and I have extensive experience writing computer code, including OIC, BTW, BRB, IMHO, LMAO, ROFL, TTYL.....

        M Offline
        M Offline
        M Riaz Bashir
        wrote on last edited by
        #3

        Thans Wayne

        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