This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.
Hey Guys & Gals
Do you know how I can compare two strings with two decimal points in it?
For example. How can I compare $A and $B where $A = 1.1.1 and $B = 10.0.0
Obviously $B is greater than $A but how will the comparison work? The usual comparison doesn't seem to work here because of two decimal points
[Version]'1.1.1' -eq [Version]'10.0.0' [Version]'1.1.1' -gt [Version]'10.0.0' [Version]'1.1.1' -lt [Version]'10.0.0'
Grüße - Best regards PS:> (79,108,97,102|%{[char]$_})-join''
Many Thanks
Much appreciated