Skip to content

Instantly share code, notes, and snippets.

@PrateekKumarSingh
Created February 5, 2018 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PrateekKumarSingh/c32f0b8822fca915db0bcbd01db60418 to your computer and use it in GitHub Desktop.
Save PrateekKumarSingh/c32f0b8822fca915db0bcbd01db60418 to your computer and use it in GitHub Desktop.
$list = Get-ChildItem -Path 'D:\Movies\' -Recurse | `
Where-Object { $_.PSIsContainer -eq $false -and $_.Extension -ne '.srt' }
write-host "`nTotal : "$list.Count "movies `n"
ForEach($n in $list){
$n.Name | Out-File -Append 'D:\Movielist.txt'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment