Hi, my name is Paul.
I can not remove the permission of the users of this folder.
what am I doing wrong?
Option explicit
Dim oShell
set oShell= Wscript.CreateObject("WScript.Shell")
oShell.Run "icacls c:\Coletor /inheritance:r /remove:g *"
WScript.Sleep 50
oShell.Run "icacls c:\Coletor /t /grant:r dmcase\digita:(OI)(CI)F /grant:r SYSTEM:(OI)(CI)F /grant:r dmcase\paulors:(OI)(CI)F"
oShell.Run "c:\Coletor\RMColetor.exe"
Wscript.Quit
when I run the script it opens the correct program so but does not exclude the groups that already have permission on the folder.
Paulo Silvano