web analytics

How to search files in all subfolders using DOS Command

Options

codeling 1595 - 6639
@2018-05-29 08:53:35

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

@2018-05-29 08:54:39

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.

@2018-05-29 08:58:31

The following command

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

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

Comments

You must Sign In to comment on this topic.


© 2024 Digcode.com