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

DOS and Batch Files

Extended Pattern Matching

SUMMARY: Multiple asterisks can be used in patterns when matching files.

You may know that with just about every version of DOS, using the '*" in a command matches all files which match the characters before the asterisk. In later versions of DOS, however, you can use the asterisk to select every file which matches the character after the asterisk.

For example, a DIR *EC.* in the root directory could match files AUTOEXEC.BAT, AUTOEXEC.DOS, DUALEXEC.INF, and LEC.TXT. And yes, you can do a pattern-match with characters before and after the asterisk.

 

 
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:
Internet Explorer 7 MiscWindows Vista - ExplorerGoogle Image Search



Change Cache SizeCopy File or Folder Path to DOS Prompt or Windows AppSearch for Images in Various Sizes

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