Here is the code:
code:
a.bat:
rem echo off
echo calling b.bat
pause
call \\server2\netlogon\b.bat
echo after b.bat
pause
code:
b.bat:
rem echo off
set SERVER=server2
if not exist %windir%\system\kx16.dll copy \\%SERVER%\netlogon\kx16.dll %windir%\system
if not exist %windir%\system\kx32.dll copy \\%SERVER%\netlogon\kx32.dll %windir%\system
if not exist %windir%\system\kx95.dll copy \\%SERVER%\netlogon\kx95.dll %windir%\system
if not exist %windir%\system\kx16.dll goto COPY_ERROR
if not exist %windir%\system\kx32.dll goto COPY_ERROR
if not exist %windir%\system\kx95.dll goto COPY_ERROR
\\%SERVER%\netlogon\kix32 \\%SERVER\netlogon\script.scr /e:1024
goto EXIT
:COPY_ERROR
echo unable to copy dlls.
pause
:EXIT
code:
script.scr:
select
case InGroup("Domain Users")
"in Global Group" ?
case InGroup("Guests")
"in Local Group"
endselect
"end of select" ?
get $dummy
Domain Users is a global group, and guest is a local group.
the user is member of both groups, yet only "end of select" is being printed to the output.
Thanks,
V.F.
{edit}
[Howard Bullock] Edited text to include code tags.
[ 08 July 2002, 13:09: Message edited by: Howard Bullock ]