Forum Discussion
Sagar Patel
Apr 17, 2019Copper Contributor
Convert Upper case to Lower Case on CSV content through PowerShell
Hello, I tried following PowerShell script and it work well but some how it convert whole string from Upper to lower. i need to keep first letter of string as upper , do not want to cover as low...
Sagar Patel
Apr 18, 2019Copper Contributor
Fixed through following script,
$TextInfo = (Get-Culture).textinfo
$TextInfo.ToTitleCase($b[0] + $b.Substring(1).ToLower()).Trim(" ") -split(",,") |
VasilMichev
Apr 18, 2019MVP
Well it's more fun if you get just the building blocks and do the complete solution yourself :P Or in other words I was being lazy and didn't want to copy/paste the entire script sample.