How to disconnect shares ?

Matthias Wächter matthias at waechter.wol.at
Wed May 19 05:19:46 GMT 1999


On Wed, 19 May 1999, David Bannon wrote:

> NT has an addition parameter to the 'net use...' command, '/persistent'.
> The default setting is whatever was used last !
> 
> Look at 'net help use'. A real problem is that if you have a mention of
> 'persistent' in you logon scripts, users who use W95 will get an error
> message.

That's not a problem, you can split the logon script into two parts
whereby one is executed for Win9x and the other for WinNT:

@echo off
if %OS%.==Windows_NT. goto Windows_NT
:Win9x
net use p: \\server\privates
goto end
:Windows_NT
net use p: \\server\privates /persistent:no /yes
goto end
:end

Sehr Wus,
- Matthias

-- 
Bunt ist das Dasein und granatenstark. Und: Volle Kanne, Hoschis!
                         aus: "Bill und Teds verrückte Reise durch die Zeit"
-----------------------------------------------------------------------------



More information about the samba-ntdom mailing list