Hi everyone,

I have a variable "Filepath" that contains (depending what I am opening) different file paths. For example,

C:\MyFolder\files\test.txt

How do i strip out the above bolded text? The file names differ in size so I am assuming it all hinges around the last "\"?

Any help is appreciated. Thanks!