Archive for August 4th, 2007

The little things

I once had a coach in high school that would always, and I mean always stress the little things.  “Its the little things that make the big things”; we would hear that daily.  After playing around with Powershell at home, I started laughing because I heard that voice say that phrase as I used a single line to organize all of my scattered .iso files on my 1TB external drive. 

I always wanted to re-organize the files on this drive, but using any search feature took a long time, and time is not something I have much of.  So again, the little things.

From the PowerShell console, I was wondering in what locations were all of my ISO files?  I entered:

Get-ChildItem -path E:\ -Recurse -Include *.iso > ISO.txt

This command searched for every ISO on the external drive (E:) and piped it out to a text file.  Viewing that text file, I found out what I thought…I had ISO files everywhere.  No big deal, I’ll just modify the command above to move everything to a central repository.

Get-ChildItem -path E:\ -Recurse -Include *.iso | move-item -Destination e:\ISO\

Easy peasy, command completed and now i’m going to re-run my audit of where my ISO files are and we see that they are now all located in the -Destination directory.

Clean-up made simple!