I have code
Compare-Object $str $str1 | foreach InputObject | ft -auto | out-file "$resault" -width 5000
and I get somthing that looks like this
\\Server\path\path\Config.Current.Running.rt-1.ci.cou.txt
and i want only some part of it = rt-1.ci.cou in my $relault
.txt file