How to disconnect shares ?

Matthias Wächter matthias at waechter.wol.at
Wed May 19 07:53:15 GMT 1999


On Wed, 19 May 1999, Matthias Wächter wrote:

> @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

Of course, this can be enhanced so all three, DOS, Win9x and NT, can be
distinguished:

@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

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