How can i split a string at the last "\"?

i know you can do this StrVariable.Split("/"c)

but how do i split it at the last “”
e.g.
\vfs1rq8\SharedData\Patient Tracking\RTT Alpha\RPA\RPA Archive\RPA Log

2 Likes

Do you want the value at the last

That is the RPA log

yes the last value

YourArrayName(YourArrayName.Count-1)

Try this

StrVariable.Split("/"c).Last

6 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.