How to search files in all subfolders using DOS Command Options

codeling Posts: 1056 Points: 4440
Posted: Tuesday, May 29, 2018 8:53:35 AM

The following DOS command can be used to search all the files with extension .aspx in the the current directory and all sub directories.

dir /s *.aspx


codeling Posts: 1056 Points: 4440
Posted: Tuesday, May 29, 2018 8:54:39 AM

If you receive more than expected results, you may need to type /p after the command. Using /p displays the results one page at a time.


codeling Posts: 1056 Points: 4440
Posted: Tuesday, May 29, 2018 8:58:31 AM

The following command

dir *.aspx /s > search-result.txt

will save the output into a text file search-result.txt.

Users browsing this topic
Guest