Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying Files included in .APP to File system
Message
 
À
05/07/2005 13:26:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01029064
Message ID:
01029068
Vues:
14
Greg,

If you use FILETOSTR() to read the file, it will read it from the included file instead of the external one. Then, you can STRTOFILE() it out to your output file:
STRTOFILE(FILETOSTR('testfile.txt'), lcFileName)
HTH,
Chad

>I have the following file added to a project and then compiled as an APP:
>
>testfile.txt
>
>At runtime, I am attempting to copy this file to a new user entered name with the following command:
>
>COPY FILE testfile.txt TO (lcFileName)
>
>Where lcFileName is the user entered filename and path. On my PC the above code works with my development path intact. I tried moving the development directory to a new location (not in the FoxPro path) and then tried to execute the program. I now get a file not found error message.
>
>I want to copy the internally stored files to the new name on the file system. It seems that the COPY FILE command is always looking at the directory level only (not in the project file). Any suggestions on storing the file in the project and being able to copy it to the file system? Thanks.
_________________________________
There are 2 types of people in the world:
    Those who need closure
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform