I have a set of Excel spreadsheets across multiple directories that I'm trying to get a row count on. I've had limited success so far as I'm a bit of a PowerShell neophyte and was hoping that I'd get a little better luck from asking.
I have Excel available but this is the best progress I've made so far, which as far as I can tell is giving my the occupied cell count and not the line count.
Any thoughts?
get-content (Get-ChildItem -Path .\ -Include *.xlsx -Recurse) | measure-object -line
I need to be able to deploy this across multiple directories which are similar but not of identical structure, however I can assume that every Excel file in the directory will be pertinent to the count.
There are some possible solutions for single files floating around here but mostly have to do with item counting instead of bulk checks.