Skip to content

This is a power shell command recursive to change encoding at files inside a directory

Notifications You must be signed in to change notification settings

maac4422/ChangeEncodingPowerShellCommand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

ChangeEncodingPowerShellCommand

This is a power shell command recursive to change encoding at files inside a directory

$PSDefaultParameterValues['Out-File:Encoding'] = 'ascii'; Get-ChildItem . -recurse -force| % { Get-Content $_ | Out-File -FilePath "$($.DirectoryName)\1-$($.name)" -Encoding default } ; Get-ChildItem . -exclude 1-* -recurse -force | foreach ($) {Remove-Item $.fullname -force}; Get-ChildItem . -recurse -force | Rename-Item -NewName{$_.name -replace "1-",""} -force

About

This is a power shell command recursive to change encoding at files inside a directory

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published