Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File Name from File Handle?
Message
From
26/03/2002 11:21:33
Jonathan Cochran
Alion Science and Technology
Maryland, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00637260
Message ID:
00637302
Views:
17
It displays the full path on my PC, but only if there is enough room. There is only a small amount of space reserved for the file name, so this won't work.

Since this displays the file name, FoxPro obviously has the information, but I guess there might not be any exposed method to retrieve it programmatically.

Thanks,
Jonathan

>Jonathan,
>
>You can parse the output of LIST STATUS TO FILE. But it doesn't look like you are going to get a fullpath() out of it. It only displays drive letter and filename.
>
>>Is there any way to get the full path and file name of the file referenced with a file handle created via FOPEN() or FCREATE()? I want to do some error trapping, and would rather be able to programmatically get the file name than having to pass it along to sub-procedures.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform