Action: Replace with regular expression
Field: _ALL <-- It means the tag and the filename, but not the containing directory
Regular expression: ^(.*)$
Replace matches with: $caps2($1)
[ ] case-sensitive comparison
To capitalize the directory name, you should use _DIRECTORY in the field Field.