Search for files in a batch script and process those files?

前端 未结 6 407
萌比男神i
萌比男神i 2021-02-04 11:38

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.

6条回答
  •  庸人自扰
    2021-02-04 12:06

    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"
    

提交回复
热议问题