Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with copy file command
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00429229
Message ID:
00429299
Vues:
18
First, you can't copy a file that's embedded in the EXE. So, if you want to copy this file somewhere, you have to ship it with the app as a separate file.

The error message you're getting is showing the directory that because that's the current directory. You've probably done a SET DEFAULT TO... or CD command that moved you to a different directory.

>Hello,
>
>I have a .bmp file included in the executable, and what I try to do is to copy this .bmp file to a temporary file during the program execution.
>the file that is included in the exe is in the project directory in a subdirectory, but the project manager has no problems with that.
>
>But in the code when I say COPY FILE Mybitmap.BMP TO tmpfile.BMP, it gives me the error "File c:\Test\subdir\Mybitmap.BMP does not exist". Why does the program search in a subdirectory in this case? I thought, when the file is included in the exe, it searches first in the exe file itself.
>
>Can anybody clear this up for me? I tried several things, but it does not look very logical to me.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform