Dispatch - Find Drawing Dir of Selected File ?

Can I check if there are any technical drawings with the same named part in the path of selected file with Dispatch?

What I want to do is if I don't have the same named technical drawing in path of selected file, I want it to jump to the next label.

Is it possible for Dispatch?

SolidworksSolidworks Pdm/enterprise Pdm