Smart Auto-Completion

When you press Tab to auto-complete, PowerShell will look at what you have entered so far to find the most appropriate suggestion. One little known fact is that you can use wildcards. Have a look:

C:\p*f [TAB]

When you press Tab, PowerShell will only suggest paths that have a "p" and then somewhere else an "f" in its name, such as c:\program files.

Twitter This Tip! ReTweet this Tip!


Posted Feb 03 2010, 08:00 AM by ps1
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.