Get-FileCount.ps1

# Get-FileCount.ps1   # Uses shell.application to get a count of files in a folder   # Thomas Lee - tfl@psp.co.uk     # First get shell object   $Shell = new-object -com Shell.Application    # Now get folder details and item counts for a folder   $foldername = "D:\Foo"   $folder = $shell .namespace( $foldername )  if (! $folder ) {  "Folder Read More...

Read the complete post at http://pshscripts.blogspot.com/2008/12/get-filecountps1.html


Posted Dec 23 2008, 11:26 AM by PowerShell Scripts
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.