It is still not returning anything. Why all of the $findfiles anyway? Just use a hardcoded path or use $mircdirsystem\dlls\mdx.dll