web analytics
How to search files in all subfolders using DOS Command Options
codeling
Posted: Tuesday, May 29, 2018 8:53:35 AM

Rank:Advanced Member
Groups: Member
Joined: 12/11/2015
Posts: 957
Points: 4023

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

Sponsor
Posted: Tuesday, May 29, 2018 8:53:35 AM
codeling
Posted: Tuesday, May 29, 2018 8:54:39 AM

Rank:Advanced Member
Groups: Member
Joined: 12/11/2015
Posts: 957
Points: 4023

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
Posted: Tuesday, May 29, 2018 8:58:31 AM

Rank:Advanced Member
Groups: Member
Joined: 12/11/2015
Posts: 957
Points: 4023

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

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.


© 2018 Digcode.com. All rights reserved.