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 bkrike 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 the loaction of a file

Status
Not open for further replies.

ishwarjindal

Programmer
Nov 10, 2002
9
IN
I have a filename i want to find its location on the harddisk. Is there any Shell API or WIndows API call which can find the location of file?
 
One solution is to run through all the directories and use the function :

MyFilename=Dir(MyFilename)

If the file is in that directory it will return the filename in the string MyFilename
PK Odendaal
pko@942.co.za

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top