Here's my first try to connect some network ressources:

Code:

if ingroup("GB-Professeur")

if exist h:
goto :exist
else
Net use h: \\SRV7002A01\Forum
? Forum connecté


if exist i:
goto :exist
else
Net use i: \\SRV7002A01\Prive
? Privé connecté

if exist j:
goto :exist
else
Net use j: \\SRV7002A01\public
?Public connecté

if exist k:
goto :exist
else
Net use k: \\SRV7002A01\eleves
? Eleves connecté

if exist l:
goto :exist
else
Net use l: \\SRV7002A01\bcd
? BCD connecté

ENDIF

if ingroup("domain user")

if exist h:
goto :exist
else
Net use h: \\SRV7002A01\Forum
? Forum connecté

if exist k:
goto :exist
else
Net use k: \\SRV7002A01\eleves
? Eleves connecté

Endif



Am i good ?

BAL.