Quantcast
Viewing all articles
Browse latest Browse all 1742

PROPER Case Function

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

Joe

Viewing all articles
Browse latest Browse all 1742

Trending Articles