Results 1 to 4 of 4

Thread: [2008] Show current OS and Sp

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2008
    Posts
    125

    [2008] Show current OS and Sp

    Hi all,

    How do i show the current OS and Service pack of a machine.

    If i use
    Code:
    Dim OS As String = (Environment.OSVersion.VersionString)
    on my vista machine it shows up as Microsoft Windows NT 6.0.6000.0

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: [2008] Show current OS and Sp

    The OSVersion has another property named ServicePack that will give you the service pack. As for the OS name, what you've got there is the official name. As far as I'm aware it's up to you to interpret the Version property as Windows XP, Vista or whatever.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Apr 2008
    Posts
    125

    Re: [2008] Show current OS and Sp

    ah right thanks,

    So i will just have to get the program to display Vista, or XP instead of the official name.

  4. #4
    Member
    Join Date
    May 2001
    Posts
    50

    Re: [2008] Show current OS and Sp

    There's a good guide to interpreting the Windows version numbers at

    http://www.codeguru.com/cpp/w-p/syst...icle.php/c8973

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width