I got handed an Access database of library books, with a request to "pretty it up." All the titles are entered in all upper-case chaacters. I need to convert them all to title case, so the first letter of each word is uper-case, everything else is lower-case. What is the best way to do this?
PS> $words = 'wAr aNd pEaCe'
PS> $TextInfo = (Get-Culture).TextInfo
PS> $TextInfo.ToTitleCase($words)
War And Peace
Gary James
@Reply 2 months ago
Alex Thanks Alex. I'm still learning PowerShell with tremendous hand holding help from CoPilot. CoPilot helped convert my old DOS Batch files to PS! scripts along with the code shown above.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Visitor Forum.