Why not use the WinAPI ShellExecute function which does not require that WSH is installed?
>Good tip.
>
>If WSH is allowed, one can use that for the use of CACLS. The advantage is that, as compared to using RUN, the appearance of the dos-window can be suppressed with the 3rd parameter.
>
>
oShell = createobject("WScript.Shell")
>lcRun = "CACLS file.txt /P JIM:F < yes.txt"
>lnRC = oShell.Run(lcRun, 1, .T.)
>
>
>>What about using CACLS.EXE since that is present on any machine running winnt 4 or above.
>>
>>>>True. However, it is more than nothing. What do you additionally suggest?
>>>
>>>I thought of SetFileSecurity but I don't have ready out of the box code for that one.
>>>Cetin