Yes, dispatch doesn't always like wildcards. No use trying * or $ either.
There is a way around it though. Its not very elegant, but it works:
- Create a dispatch variable, type static string. Call it FindMyFolder (or anything else)
- In the value field type: Find(%PathToSelectedFile%,myfolder)
- In your jump command: IF %FindMyFolder% = -1 NO_CASE THEN GOTO Exit
"find" looks for the location of a specific sub-string of characters (myfolder) inside a different string of characters (the path). It brings back a number, that represent the beginning of the sub-string (first character is 0). For example, find(Abracadabra,cad) will give you 4.
The nice thing is that if it can't find the sub-string at all, it brings back the value -1. This way you can use find as something similar to the contain and not contain we all like in conditions.
Hope this helps,