Creating script to process RC for multiple folders in sequence

I am trying to understand the %%f function better, and how it executes in a Notepad ++ written batch file, in that I understand it is a for function and the variable for which allows a repeating sequence?