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

前端 未结 6 543
萌比男神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 11:54

    You could also install cygwin to get a full-blown Unix-esque shell, which comes with the trusty old "find" command, plus a bunch of other tools. For example,

    find . -name "*.resx" | xargs grep MyProjectName
    

提交回复
热议问题