Here is the way I do it. NT makes an enviroment variable called OS that contains "Windows_NT".
DO CASE
CASE 'NT' $ GETENV('OS')
&& winnt
CASE '9' $ OS(1)
&& 95
OTHERWISE
&& 3.1
ENDCASE
Charles
>I'd like to know if there is another way to tell if your FPW 2.6 app is running under NT since the Foxpro built-in function OS(1) always returns the string "Windows 3.10" which is really misleading.
>Thanks in advance.
>
>Quoc-Buu.
Charles
"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers