Quantcast
Channel: Crystal Reports
Viewing all articles
Browse latest Browse all 1507

Search for file on drive including subfolders matching a record/fieldname (with wildcards)

$
0
0

<div class="dm-section-hero--question__content"> <div class="dm-section-hero--question__body">

I have a question about crystal reports 11.5.8.826

I’m trying to locate a file on a server folder matching a fieldname with the result TRUE or FALSE.

I would also like to use wildcards.

For example :

401 = fieldname

search for 401*.cnt on a server location: \\svrfil01\drawing\

result:

401part1.cnt and 401part2.cnt / output = TRUE

I already used a custom UFL function “filexists()“ but that does not allow wildcards and does not search in subfolders.

found it here here : http://www.viksoe.dk/code/u2lwin32.htm

And I tried using a new database connection, but that messes up my report results and causes to slow down the report :

Is it possible to do this without a function or a database connection?

If not, can you please tell me if there is a correct function or how to connect with a drive on the server?

Thank you all.

</div> </div>


Viewing all articles
Browse latest Browse all 1507

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>