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

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

    To generate a simple file list of all the relevant files for later processing

    @echo create a results file…
    if exist results.txt (del results.txt)
    echo. >NUL 2>results.txt
    
    @echo minimal recursive subdirectory search for filespec...
    dir /s /a /b "*.resx" >>results.txt
    

提交回复
热议问题