Logon-Script
Thomas Heiligenmann
thomas.heiligenmann at t-online.de
Wed Mar 1 18:07:46 GMT 2000
Fabian Guter wrote:
>
> > You have to use the net command in following manner:
> >
> > net use Y: \\SERVER\ShareName /persistent:no
> >
> > This will disconnect the drive, when the user logged out.
>
> Unfortunately, this works only with NT clients, since Win9x doesn't know the
> option /persistent:yes|no.
>
> Is there a way to get the desired result on both systems without using
> different user acoounts ?
>
if %OS%=="Windows NT" goto NT_LOGON
:WIN95_LOGON
net use Y: \\SERVER\ShareName
goto END
:NT_LOGON
net use Y: \\SERVER\ShareName /persistent:no
:END
--
Thomas
More information about the samba-ntdom
mailing list