Assign an icon to all items in a folder

Greetings, I have a question. I have a button that assigns to all items in a folder to prevent them from being deleted. I assign it an icon so it shows me this icon in the status column. This works well for the selected folder. My question is: Can all items in this folder be assigned this icon so they all display the assigned icon? The command is as follows:
Properties ADDLABEL SETLABEL="Locked"

You could set up a Filter Label that matches everything below that path. (Preferences / Labels / Label Assignments)

I don't think I explained it well, to make it simple, Is there a way to apply a label to all the files in a folder and its subfolders with one command?

Not with a single Properties command, I am afraid. You'd need to combine it with FlatView, Find, or a bit of scripting.

ok, thanks, i will tests