>Hello, i have a form from where i need to place an excel file and save it, i was thinking in when i'm going to save a record i need to find the file first and then save the path and the name file in order to open it from vfp (i know how open an excel file from vfp, but i don't know how to do the first part i mentioned before.), how can i do this?
>
>Thanks.
adir() will give you a list of files in a certain directory. If you need to scan subdirectories, you can use recursion. I think WSH or API solutions would be simpler in this case, but I don't know very well how to use them.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)