Different login scripts for different OS ?

Michael Glauche mg at plum.de
Fri May 21 07:31:43 GMT 1999


Tomek Jarosinski schrieb:
> 
> Hello,
> The syntax of net use commands is different in win95 and winnt. So, when
> i want to add some extra options for nt it will not work with w95 and
> vice versa. Is there any possibility to use different login.bat scripts
> for different windose versions ?
> All the best,
> Tomek

Someone posted this a few days ago :

@echo off
if %OS%.==Windows_NT. goto WinNT
if %windir%.==. goto DOS
:Win9x
echo Win9x stuff here...
goto end
:DOS
echo DOS stuff here...
goto end
:WinNT
echo WinNT stuff here...
goto end
:end

regards,
   Michael

--
http://www.connection-net.de/linux/samba/


More information about the samba-ntdom mailing list