Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to find a file in a directory ? 2

Status
Not open for further replies.

viettla

Programmer
Jul 19, 2002
34
VN
Hi all,
I want to find a file in a directory and sub directories. How can I do it ?
Thank you very much

Viet
 
Thank Mike,
it's quite simple but sometime I can't remember adir() function. Do you know API function which can do that ?

Viet
 
Viet,

Do you know API function which can do that ?

I could probably find one, but why do you need it? If the problem is that you can't remember how to use ADIR(), why would an API function be any easier?

Mike


Mike Lewis
Edinburgh, Scotland
 
Mike,
I only want to know if there is API can do it


Viet
 
viettla

This could find the first instance of a file in a directory:
Code:
DECLARE INTEGER FindFirstFile IN kernel32; 
    STRING   lpFileName,; 
    STRING @ lpFindFileData

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Thank Mike Liwis,Mike Gagnon
You know everything, You are REAL Experts
thank in advance


Viet
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top