Remove PATH from filename

Hi,

I load some file into a component of a protocol, and I assign the filename+path to a global variable, @compound.

So for instance I get @compound like : C:\temp\whatever\butane.sdf

How can I later create another global variable (i.e., @cmp), which is the same as @compound but without the path, i mean, in this case @cmp would be butane.sdf ?

I thing I should try something like

globalproperty('cmp') := FUNCTION(@'compound');

where FUNCTION removes the path, but in this case I did not find anything relevant on the help.

Or I also wonder about another solution to this problem (maybe I could read two variables at the same time in the component, one with the whole path and another one just with the filename? )

Thanks