I have a file path
e:\pst\Section\RMS\user\\
final output needs to be Section/user
Currently using
$result.filepath = $pst.FilePath.Split('\')[2..4] -join '/'
but that gives me
Section/RMR/User
How can I manipulate the split to only pull 2 and 4 to equal Section/User?