Welcome dcell

A question and some suggetions:

1) Is your INGROUP() working properly ? I mean, is it properly determining group membership and trying to perform the xcopy ? Might try putting in a display statement after the ingroup() just to make sure:

IF INGROUP ("AODB") = 1
?"User is member of AODB"
...
ENDIF


2) I would code your xcopy using the shell command, like this:

shell '%comspec% /c xcopy p:\ausopen\*.* c:\ausopen\*.* /d'

this usage will automatically wait for the xcopy to finish and you can get rid of the sleep 10 !

3) The END IF should be coded as ENDIF

-Shawn