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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

determining exact path of an open data file

Status
Not open for further replies.

MuadDubby

Programmer
Sep 23, 1999
236
CA
Question:
If I have a FILE_PREFIX environment variable that contains several folders in it, such as:
FILE_PREFIX C:\ C:\MY_DATA C:\MY_DATA2

...and I open a data file that already exists (e.g. MYFILE.DAT). Given that my status code is "00" (meaning the file does exist and the open was succesful), is there a way to find out which folder my file was actually opened in (short of parsing the value of FILE_PREFIX myself and searching each one of those folders manually)?

Thanx ...
 
Its ok, I figured it out. Gotta use C$FULLNAME, which returns the full path of any file name you give it (according to FILE_PREFIX, FILE_SUFFIX and FILE_CASE).

Thanx anyway :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top