Saturday, January 27, 2007

Use of *splat* in CMD

Inventive use of the splat character (*) can be used to save countless keystrokes in a CLI over time.

e.g. (commands given in red font)

c:\Documents and Settings\username\>cd \
c:\> cd "Program Files"
c:\Program Files>cd "Microsoft SQL Server 2005 Mobile Edition"
c:\Program Files\Microsoft SQL Server 2005 Mobile Edition>

Can be replaced by:

c:\Documents and Settings\username\>cd \
c:\> cd Pro*
c:\Program Files>cd Mic*on
c:\Program Files\Microsoft SQL Server 2005 Mobile Edition>

That saves 45 keystrokes...
If you are a command line admin like me... (and you should be anyway, right?)
You should appreciate the keystrokes saved by this techinique.

steve

No comments: