On Mon, 25 Jul 2005 06:26:06 -0700, Roundy
<(E-Mail Removed)> wrote:
>I am running windows server 2003 Standard and have windows xp, 2000, and
>windows 98 clients. On the 98 clients drives do not map using the script
>that works on windows xp etc.
>
>I need some direction on how to determine if the computer logging in is
>windows 98 or xp 2000 and then run the proper drive mapping commands. That
>is really all that I am doing, just mapping drives.
The OS environment variable is set by default on Win2k/XP to "Windows_NT"
So you can add a test in the login script, such as:
if [%OS%]==[Windows_NT] goto WINNT
(put Win9x script commands here)
goto EXIT
:WINNT
(put Win2k/XP script commands here)
goto EXIT
:EXIT
--
ARREST, v.t. Formally to detain one accused of unusualness.
- Ambrose Bierce
|