Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6: Error running EXE
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00590069
Message ID:
00590115
Vues:
26
>>>I have a very simple program that copies some files from a CD to the hard drive. I have compiled it into a EXE and I am getting an error with the message being: DO D:\mydir\myexe.exe. I only get the error when I try to run the EXE on the CD. If I copy it to the C: drive then it works. I added a CONFIG.FPW with a RESOURCE = OFF and I still get the error. Any ideas? TIA!
>>
>>You haven't specified a temporary directory, so VFP is trying to use the Startup directory on the CD for it's temporary files. Try pointing TMPFILES to a local hard drive location (while you can be reasonably sure that C:\ will exist, it's not safe or smart to use the root of a drive, which can only support a limited number of file entries in some file systems) - perhaps your setup can ensure that a C:\MYTEMP always will exist, and then add the entry
>>
>>TMPFILES=C:\MYTEMP\
>>
>>to the CONFIG.FPW
>
>Actually, I did add a config.fpw with tmpfile = c:\ plus the *work commands and I still get the error.
>
>The problem is copying a file from the CD to the hard drive and they already exists then I get an error "Cannot Create File." I guess I will have to delete the file(s) if they already exists.

If the file came from the CD, the "read only " attibute may be the cause of your problem if you try to overwrite it?
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform