To get total line count in all files in a folder and its subfolders using Windows PowerShell:
- Open PowerShell in Administrative Mode
- Run code below, with the file types you want to count
(dir -include *.php,*.js,*.css,*.html -recurse | select-string .).Count
To count all files in a folder and its subfolders using Windows PowerShell:
- Open PowerShell in Administrative Mode
- Run code below, with the correct folder
(Get-ChildItem “C:\FOLDER_PATH” -force -recurse).Count