NTDOC,

This seems to work. I added a sub to test if win2k is not found. I tested this on a win95-machine and an Nt-server-machine. It's a simple but yet effective test.

Here's the batch I tested:

code:
@Echo OFF
If not "%ALLUSERSPROFILE%" == "" Goto FOUND
If "%ALLUSERSPROFILE%" == "" Goto NOTFOUND
Goto END

:FOUND
Echo Found Windows 2000
Pause
Goto END

:NOTFOUND
Echo Windows 2000 not found
Pause
Goto END

:END


Martijn