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!

Find a file

Status
Not open for further replies.

emergencyplan

Technical User
Aug 19, 2003
34
GB
Hello,

I would like to be able to look for a file using code, for example C:\Access.exe, or could be G:\Access.exe. I know the file name but not the path.

I'm pretty new to VB so be kind!

Any ideas, many thanks.

Laurence
 

emergencyplan, have you read FAQ222-2244 yet?

To search for a file you have several options that you can use and lookup in the help files...

Dir function (you can automate)
Common Dialog (user searchs not automatic)
File System Object (FSO) (you can automate)
Drive, Dir, and File controls (you can automate or user)
FindFirstFile, FindNextFile API's (you can automate)

plus a few more

Good Luck

 

emergencyplan, have you read FAQ222-2244 yet? Have you had any luck solving your problem?

Good Luck

 
vb5prgrmr,

Problem resolved using some code gleaned from various sources using seaches on this site.

I have read FAQ222-2244, thanks for the concern!

Laurence
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top