Extract Parent Path

Hello,

Use Path.GetFilenName() function in which pass your string. so It will return your filename.

Example : -

Path.GetFilenName(“\home\desktop\joebloggs\banking\Jan\payment.pdf”)