if then statements

  • Thread starter Thread starter somsd
  • Start date Start date
S

somsd

I'm coming from a Novell network, and I would like to know
if you can do "if then" statements during the login scipt.
I have different groups that need specific drive mappings
to run some programs. I can't seem to find any info on
this.
Thanks
 
I'm coming from a Novell network, and I would like to know
if you can do "if then" statements during the login scipt.

If "%username%"=="007" echo Your licence has been revoked!
I have different groups that need specific drive mappings
to run some programs. I can't seem to find any info on
this.

Google for IFMEMBER

Ciao, Walter
 
thanks for the help
-----Original Message-----
REM Map our standard drive letters

REM net use G: /D

REM net use G: \\SvrData1\%username%

net use H: \\SvrApps1\Apps /persistent:yes

net use I: \\SvrApps2\PurApps /persistent:yes

net use M: \\SvrFS\FSKZ/persistent:yes

net use P: \\SvrData2\Data /persistent:yes


:TechPub
\\SvrData1\userconfig\ifmember.exe "SG TechPub"
if not errorlevel 1 goto KTMS
net use j: \\SvrData2\TechPub /persistent:yes

:KTMS
\\SvrData1\userconfig\ifmember.exe "AG KTMS"
if not errorlevel 1 goto Open4
net use k: \\SvrOpen4\KTMS /persistent:yes

:Open4
\\SvrData1\userconfig\ifmember.exe "AG Open4"
if not errorlevel 1 goto RePower
net use o: \\SvrOpen4\Open4 /persistent:yes


:RePower
\\SvrData1\userconfig\ifmember.exe "AG RePower"
if not errorlevel 1 goto ZFAX
net use Q: \\RepFS\FSRP /persistent:yes
net use U: \\SvrApps1\ReP /persistent:yes


:ZFAX
\\SvrData1\userconfig\ifmember.exe "AG ZetaFax"
if not errorlevel 1 goto Exit
net use z: \\SvrGate\ZFax /persistent:yes


:EXIT
EXIT
 
Back
Top