So I have a process where I can assign the file path of a random file in the folder to a variable.
What I need to do with that is get only the name of the file. as below:
input : C:\Users\user\Documents\UiPath\BK\ attachments\289cfc07d7a9e9.pdf
output : 289cfc07d7a9e9
so i need to remove the file type as well as the other parts before the name.
Any idea how I can do this and assign it to a variable?