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
#All the files in the directory are uppercase i.e "TEST.TXT" | |
#We set the first letter to lowercase for this example | |
gci -Path D:\temp\ -File -Filter "*.txt" | foreach{$_| ` | |
Rename-Item -NewName $($_.Name.substring(0,1).Tolower() + $_.Name.Substring(1))} -ErrorAction SilentlyContinue |
No comments:
Post a Comment