A .bat or .wsh script that can search for files

后端 未结 3 876
野的像风
野的像风 2020-12-18 04:21

I am looking for some examples of a .bat OR .wsh script that can do the following:

  • Recursively read file names in a directory with a user-provided extension (.
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-18 04:40

    Why not use dir?

    Search current directory and all subdirs for dlls

    dir /S *.dll
    

    Search all of C for dlls

    dir /S C:\*.dll
    

    Save a report

    dir /S C:\*.dll > report.txt
    

提交回复
热议问题