Click to See Complete Forum and Search --> : Determining If Running in Win95, 98, or NT
PowerSurge
Nov 18th, 1999, 11:34 AM
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
Aaron Young
Nov 18th, 1999, 11:44 AM
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 (http://www.vb-world.net/ubb/Forum1/HTML/010668.html).
------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
adyoung@win.bright.net
Crazy D
Nov 18th, 1999, 02:50 PM
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 :-)
Yonatan
Nov 18th, 1999, 10:00 PM
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: RZvika@netvision.net.il
ICQ: 19552879 (http://www.icq.com/19552879)
AIM: RYoni69
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.