Dynamic Collection name creation

I have a find button that adds files into a collection named 'bob'.

Is it possible to have the collection name scripted such that if searching in folder C:\A, the files will be added to a collection named 'A' and if searching in folder C:\B, the files will be added to a collection named 'B'?

Here is the code under the existing button:

Find IN {sourcepath$} FILTER NAME MY_CUST_FILT COLLNAME "bob" CLEAR=no RECURSE=yes SHOWRESULTS=lister,tab QUIET

Thanks,

Steve

Yep:

Find IN {sourcepath$} FILTER NAME MY_CUST_FILT COLLNAME {sourcepath$|nopath} CLEAR=no RECURSE=yes SHOWRESULTS=lister,tab QUIET