To get total line count in all files in a folder and its subfolders using Windows PowerShell:

  1. Open PowerShell in Administrative Mode
  2. 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:

  1. Open PowerShell in Administrative Mode
  2. Run code below, with the correct folder
    (Get-ChildItem “C:\FOLDER_PATH” -force -recurse).Count