Thanks Claude,
>You could just create a string that has those commands in vfp, strtofile to a .cmd, and then execute the .cmd from vfp
At the moment that's exactly what I'm doing, but although we want a cleaner implementation of the function, CACLS has some problems when not running at the target server with local/global groups.
Regards,
Fernando