Command line toys

time to read 2 min | 278 words

I've a directory that contains a lot of sub-directoires with long names:

D:\Code\CastleProject\MonoRail>dir /ad/b Castle.*
Castle.MonoRail.ActiveRecordScaffold
Castle.MonoRail.ActiveRecordScaffold.Tests
Castle.MonoRail.ActiveRecordSupport
Castle.MonoRail.ActiveRecordSupport.Tests
Castle.MonoRail.Engine
Castle.MonoRail.Engine.Tests
Castle.MonoRail.Framework
Castle.MonoRail.Framework.Tests
Castle.MonoRail.Framework.Views.CompositeView
Castle.MonoRail.Framework.Views.NVelocity
Castle.MonoRail.Framework.Views.NVelocity.Tests
Castle.MonoRail.Generator
Castle.MonoRail.TestSupport
Castle.MonoRail.Views.Brail
Castle.MonoRail.Views.Brail.Tests
Castle.MonoRail.WindsorExtension
Castle.MonoRail.WindsorExtension.Tests

D:\Code\CastleProject\MonoRail>cd *br*

D:\Code\CastleProject\MonoRail\Castle.MonoRail.Views.Brail>

I knew that you can use * to tab to the correct directory, but it's nice to see cmd.exe guess my mind :-)