Attention: We are retiring the ASP.NET Community Blogs. Learn more >

DOS Syntax

Here's a new DOS command I wasn't aware of:

“for %a in (xls pdf) do dir *.%a “

will return dir's for xls and pdf files...etc. Pretty cool stuff. 

From http://gearbox.maem.umr.edu/~batch/dirx.htm

1 Comment

  • Uhm... you just found out about that?



    Ok, go read the windows help for dos commands... thers a whole bunch of cool things way down in command line land...



    Sorry but having started with DOS 3.xx and Novell 2.xx I used to have to know how to make all kinds of bat files for stuff....



    more signs of how long I have been doing this... :-(

Comments have been disabled for this content.