Hi,
Requirement is to report how many files got imported to a folder after a lengthy db action.
Folder properties is taking over an hour and counting. I thought PS might be able to jig it up a bit.
Fastest code I can think of today is:
$path="d:\my_massive_folder"
([System.IO.Directory]::GetFiles($path,'*.*','AllDirectories')) | Measure-Object | %{$_.Count}
Currently taking about 15 minutes to return 3 million+ files.
Any faster code ideas welcome.