Created
February 7, 2019 05:36
-
-
Save jobou363/7582ca85caccb69218516d4e467a7419 to your computer and use it in GitHub Desktop.
List files encoding
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
# encrypt files to utf-8 no bom | |
[string[]]$Excludes = @('**\\Debug\\**', '**\\bin\\**', '**\\obj\\**', '*TemporaryGeneratedFile*.cs', '*.Designer.cs') | |
$files = Get-ChildItem -Include *.aspx, *.asmx, *.cs -Exclude $Excludes -Recurse -Path . | select FullName, @{n='Encoding';e={Get-FileEncoding $_.FullName}} | |
$files.count |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment