- Aug
- 2,027
- 82
Here's a function that will convert an upper, lower, or mixed-case string to proper case;
Proof;
Joe
Code:
proper=%@pshell[(Get-Culture).TextInfo.ToTitleCase("%$".ToLower())]
Code:
e:\utils>echo %@proper[DAILY EPIDEMIOLOGICAL SUMMARY]
Daily Epidemiological Summary
Joe