a Flo + a Blog = a Flog my ブログ

17Apr/090

Search for a file with Powershell

I am slowly converting my command line skills from the good old command prompt to powershell. It is quite different and somehow very powerfull.

I will probably be sharing a few basic tips for daily life using powershell on your computer.

Today is  a substitute to the old:

dir /s *filename*

So if you are looking for a file or directory in your file system try something simple like this:

dir -recurse -filter *filename* | sort name | ft directory, name

In fact, dir doesn't even exist anymore, dir is an alias of get-childitem.

I am not sure I should debate about this feature as MSFT does that very well on technet.

Just to sum up it is in fact a very powerfull search tool.

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.