Lovely Part Deux

by Lord Cod3n 18. August 2008 07:55

Here is my second post on a multi-part test.  OK so to give you something useful.  Have you checked out windows powershell? 

http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx

I think using get-childitem to search your folders is pretty cool.  You can even format the results.  Here is a sample to query your c drive for any mp3's.

get-childitem -r c:\ -filter *.mp3 | format-list 

You can substitute any path for the c:\.  You can also use \\mypc\share  or a mapped drive.  You can also search your environment variables and the registry using this method.  I used a similar query to look for duplicated movie files on my media drive.  I am itunes paranoid because you cannot re-download them.  The command line is a little bit more complex, but it will demostrate the use of select and where commandlets. I will post that command line as soon as I find my notes.

Code Happy,

Bill

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen

About the author

William Moore is the lead Software Architect and Technologist for Coden Enterprises. He has more than a decade of software development experience primarily Microsoft Platforms.  William enjoys the full gamit of coding everything from the UI down to the database.

Most comments

Page List