Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to copy a file included in exe to disk ?
Message
 
 
À
19/10/2001 19:24:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00571203
Message ID:
00571540
Vues:
25
Hi!

FileToStr() command can copy file from EXE to string in the memory (at least it works for BMP files). In addition, you can use APPEND MEMO command to append memo field from file that is included into EXE (works by more reliable way).

>Hi,
>
>My program needs an fll to decrypt data files. In order to copy the fll to disk upon the first run, I include a slighty renamed file (xxxx.fl_) in the project and then compile the exe. When the program is run, if file xxxx.fll is not in current directory, I say COPY FILE 'xxxx.fl_' TO 'xxxx.fll'.
>
>The problem is that during development file 'xxxx.fl_' is in a subdirectory under the pjx file and at runtime the COPY command looks for the file in that subdirectory (which doesn't exist) instead of in the exe. How can I solve this problem without copying 'xxxx.fl_' into the same directory as the pjx file?
>
>Thank you very much.
>
>Alex
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform