In a windows batch file, is there a way to traverse a folder/subfolders hierarchy doing some action on each file?
Yes, you can do this using the for command with the /r switch, e.g.:
for
/r
for /r %%f in (*) do echo %%f
See also this question for an example.