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

前端 未结 6 385
萌比男神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:17

    You know that for can also run recursively over directories?

    for /r %%x in (*.resx) do echo "%%x"
    

    Much easier than fiddling with delimiters and saves you from running dir.

提交回复
热议问题