I\'m trying to do some things during the pre-build phase of a visual studio project. Specifically, I\'m trying to execute some commands on all *.resx files within the project.
You are running into inadvertant use of the default space delimeter. You can fix that by resetting the delims like so:
for /f "delims=" %%a in ('dir /B /S *.resx') do echo "%%a"