Created
February 5, 2018 14:50
-
-
Save PrateekKumarSingh/c32f0b8822fca915db0bcbd01db60418 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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