Link to home
Start Free TrialLog in
Avatar of engllf
engllf

asked on

File Searching

VC5.0:
How do i search and retrieve the path of a file  TEST.CPP ?  The drive and the directory which it sits in is unknown.


 
Avatar of engllf
engllf

ASKER

Edited text of question
Please try class CFileFind

FindFile() can begin the search.
GetFilePath() can fetch the found file's path name.
CFileFind is an MFC class.  Are you working in MFC?
Prefer direct call to API.
Avatar of engllf

ASKER

I am working in MSVC.
But I prefer direct call to API.
I am trying not to rely to much on MFC.  

Avatar of engllf

ASKER

answer coming in a minute.
ASKER CERTIFIED SOLUTION
Avatar of nietod
nietod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial