SPONSORS:






User Tag List

Results 1 to 4 of 4

Thread: Getting the OS

  1. #1
    Member
    Join Date
    Jun 2002
    Location
    california
    Posts
    60
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Getting the OS

    I am working with different OS - Win2k, WinNT, and WinXP.

    What's interesting is that when I do?

    [-] testcase test()
    [ ] STRING sName
    [ ] sName = SYS_GetName ()
    [ ] Print ("Operating System: {sName}")
    [ ]

    for each OS.

    What's returned each time is Windows NT? How do I check for the operating system I am working with?


    ------------------

  2. #2
    Senior Member
    Join Date
    Jul 1999
    Location
    Burlingame CA 94010
    Posts
    502
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Getting the OS

    SYS_GetVersion ()

  3. #3
    Member
    Join Date
    Jun 2002
    Location
    california
    Posts
    60
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Getting the OS

    thanks, that's what i ended up using. but still it just gives the version of 5.0 or 5.1 vs explicitly saying the OS as XP or 2K.

    ------------------

  4. #4
    Senior Member
    Join Date
    Jul 2000
    Posts
    117
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Getting the OS

    Yeah ... that's because Micros**t decided that Win2k is really NT 5.0, and XP is really NT 5.1. Notice during boot that they both say something like "Built on NT".

    Almost as much fun as Sun OS 5.8, I mean Solaris 2.8, I mean Solaris 8 ... <grin>

    ------------------

 

 

Posting Permissions

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

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 09:01 AM.

Copyright BetaSoft Inc.