简体   繁体   中英

Batch File to Find Filenames

Is it possible to create a batch file which searches all sub folders for a specific string in all the file names?

For example it could be searching for "2013" contained within the file name?

Is it then possible to create a text file list of all the files which contain the search term "2013"?

dir c:\*2013* /s /b /a-d > 2013list.txt

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM