Results 1 to 4 of 4

Thread: Determining If Running in Win95, 98, or NT

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 1999
    Posts
    9

    Post

    I think there is an api call to do this but im not sure .. anyway does anyone know if its possible to determine whether the program is running under Win95, 98, or NT?

    Thanks for any help

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    You should really take the time to at least check the Posts made in the last 2 Days.

    Serge has posted a complete answer to your question Here.

    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]

  3. #3
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386

    Post

    Reading back posts is always worth it :-)
    You can also use the Environ$ function:
    Environ$("OS")
    NT returns Windows_NT . I can't check here what 95 or 98 returns, I assume you can check it with Instr(1, Environ$("OS"), "95") or "98". At least less code that using the API :-)

  4. #4
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892

    Post

    Crazy D, your code would have been perfect if the OS environment variable was set in Windows 95, 98, 3.11+Win32S and not only NT...

    ------------------
    Yonatan
    Teenage Programmer
    E-Mail: [email protected]
    ICQ: 19552879
    AIM: RYoni69

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