There are many times when I wish to set a permission on a folder only, but all the programs i've tried will recurse through all sub files and folders during the process. As this is slow, is there any way to avoid this?
Things i've tried:
Windows Explorer: fails, as you can see in the gui, it will loop through all subobjects.
SetAcl.exe from Helge Klein: fails, as revealed by a nifty tool called ProcessMonitor
SetACL.exe -on "PATH" -ot file -actn ace -ace "n:USER;p:read_ex;i:np;m:set" -rec no
For those who don't know, the "i:np" clause means the permission shall apply to "this folder only".
icacls: fails (Process Monitor)
icacls "PATH" /grant USER:(NP)RX
(does the same thing as the setacl command above)
(command lines just examples)