Trying to add permissions to a couple directorys on anyone's w2k workstations where the NTFS directory exists.

Code:

$DOMAIN = TPE

IF EXIST ("C:\Program Files\The Produce Exchange\TPEAllocator\buffers")
SHELL RUN 'XCACLS "C:\Program Files\The Produce Exchange\TPEAllocator\buffers" /C /T /G "$DOMAIN\Everyone":F
ENDIF

IF EXIST ("C:\Program Files\The Produce Exchange\TPEAllocator\XML")
SHELL RUN 'XCACLS "C:\Program Files\The Produce Exchange\TPEAllocator\XML" /C /T /G "$DOMAIN\Everyone":F
ENDIF

IF EXIST ("C:\Program Files\The Produce Exchange\TPEAllocator\XML\Saved")
SHELL RUN 'XCACLS "C:\Program Files\The Produce Exchange\TPEAllocator\XML\Saved" /C /T /G "$DOMAIN\Everyone":F
ENDIF



got this from an example from a old post but this script isnt working. no errors are being displayed.


Edited by skiff (2004-04-09 08:39 PM)