Find File with Partial Name with DIR


How to find Find Files with Partial File Name with DIR command?



You can use the "DIR file_name /S" command to find files with partial file name.

  • "file_name" - Specifies the file name you are looking for. "?" and "*" wildcard characters are supported.
  • "/A-D" option - Tells Windows to not display entries with the "D (Directory or folder)" Attribute.
  • "/S" option - Tells Windows to display entries in sub-directories recursively.

For example, if you are looking for the location of a Word document of your old resume, on your computer, you can use these command:

C:\>cd \

C:\>dir *resume* /A-D /S

            37,376 resume-v2.doc


Find Folder Location with DIR

Windows Command Examples

Windows Command Examples

⇑⇑ Windows Batch File Tutorials

2018-01-31, 214👍, 0💬