Any kind of help to solve this problem is much appreciated.
I know it's a hard one, and I know it's worth more than 500 points.
But as you know, it's the maximum allowed points.
I have a lot of pdf files in a folder and its sub folders.
these pdf files are managed by an access database.
the users of this database receive orders and need to print the
pdf drawings related to this order.
As a user inputs the order in reception form and hits "Print" button,
the pdf filename is passed to a function that searches C:\pdf\ and it's sub folders
to find out the path of the pdf file and prints it using a shellExecute command.
Everything is working perfectly at present.
and now this is my problem.
As the database grows, due to the No. of increasing sub folders, it's getting
harder to find the path of the pdf files. Some pdf files are not saved in the correct
sub-folders and a lot of more problems occurs.
I need to write a function that searches ALL the sub-directories under C:\pdf\
and returns the correct path of a given pdf files.
for example if I pass ABCDE to this function, it has to search ALL the
sub-folders under C:/pdf/ and return a string that is the full path of ABCDE.pdf file.
any other solution that can do the same task (receives a file name and returns
it's full path under C:\pdf\ can suit me as well._)
the important point is that the tree structure under C:\pdf\ may change (adding sub-folders etc). the function should be written in a way that checks ALL the sub-folders and their sub-folders....
Deep thanks for any kind of help.
Start Free Trial