Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying a file from inside the exe
Message
De
27/04/2010 12:20:27
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01462223
Message ID:
01462231
Vues:
54
>>Hi All,
>>
>>My exe app has a txt file contained within it. How do I copy it out to the users hard disk? It keeps looking for the original file along the original path when I compiled the exe file.
>>
>>TIA,
>
>You could extract it from the EXE using STRTOFILE and FILETOSTR functions:
>
>STRTOFILE(FILETOSTR("TXTWithinTheExeFileName.TXT"),"ExternalName.TXT")
>
>But that will not resolve your problem. VFP searches first in the EXE and then in the path. So you must include that file with Different name in the EXE.

Thanks. Did have it somewhere but was in a rush :)
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform