computer help index
 
 
Search:
"Offering free computer help, hints, and tips to the Internet populace." Now with over 3,490 tips!

DOS and Batch Files

Find All Files Of A Given Type

SUMMARY: Quicky scan your hard drive for all files with a given extension, such as batch files, text files, or executables.

Ever need to find all of your batch files on your hard drive? Or, need to find all of your text files? What about images? This quick batch file will let you type in the following command at the DOS prompt:

FINDALL BAT

And it will display all of your batch files in the current directory and subdirectories. Type:

FINDALL TXT

And it will display all of your text files in the current directory and subdirectories.

Just create a batch file called FINDALL.BAT, consisting of just this line:

@dir /b /s *.%1 | more

Place this file in your Windows directory, or if you are not using Windows, a directory inside your configurable PATH.

Want to sort the results? Make FINDALL.BAT consist of this line:

@dir /b /s *.%1 | sort | more

 

 
Add: Del.icio.us | Digg | Furl | My Yahoo!
 

Discuss This Tip

Print This Tip

Get E-Mail When New Tips are Online

Return to the DOS and Batch Files page.


More in MalekTips:
Google GmailWindows XP and the KeyboardSites to Browse - Music



Move the Chat or Labels Section to the RightPrevent the Cursor from BlinkingInternet Archive's Audio Archive

RSS Feeds - Subscribe!
 

You want the latest tech tips and tricks in your e-mail Inbox - FREE? Type your e-mail address below and click 'Subscribe'.
 



( sample / details ) ( opt-out instructions )
 


 Free Offer! - Subscribe to the MalekTips computer help list and be one of the first to get new computer tips, articles, and download links! ( privacy policy )  ( opt-out instructions )
This page and its contents are copyright
©1997 - 2008 Envision Programming. ( copyright/disclaimer )

Home | Free Computer Help Newsletter! | Windows | Web Development | DOS and Batch Files | Removing Spyware
Digital Camera and Photography | Computer and Internet | Software | Microsoft Word
Computer Articles | About | Contribute a Tip | Link To Us! | Computer and Technology Links
RSS Feeds |  Contact Us | Advertising | Privacy Policy | Computer Help Forums