How can I get a directory path if I only know the first part of the directory path + the file name? Filesearch appears to work if I plug in some complete paths with a known file name, but if the file myfile.txt exists in c:\windows\testdir\myfile.txt and I know this file is somewhere in the windows directory (i.e. c:\windows, but it could be anywhere beyond that), is there a function to return c:\windows\testdir ? In other words, search the directory path (including subdirectories ), find the file,
and return the entire path name?