Path/file name

Hi, Team!

If I have this path “C: \ Users \ LxxxZxxx \ Desktop \ invoice AKD \ invoice111.pdf” in variable item
How can I keep in a variable only invoice111.pdf

Thank you in advance!

Pass your string to Path.GetFileName to get just the filename.

1 Like

Thank you!
Worked!

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