Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trouble going from project to Application
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Divers
Thread ID:
00394121
Message ID:
00394157
Vues:
12
A couple of suggestions:
1. Use getenv("Temp") to give you a valid path.
2. If you are copying an EXE, I think you can get into trouble if you are trying to overwrite an EXE that is currently executing.

>Michael,
>The last time I had this problem there was no C:\Windows\Temp folder on the user's computer. If the user is running WinNT then their TEMP folder will be C:\WinNT\Temp. Or even another drive letter. This is not a folder that should be hardcoded unless you check it on setup - and even then users can delete the folder.
>
>HTH
>Barbara
>
>>In VFP5.0
>>I have a program that copies a file from our server to the local PC. I tested it completely as a project, and it worked in all cases. But when I built an application out of it, it crashes with an error message of:
>>
>>Unable to locate file C:\windows\temp\myfile.ext
>>
>>The line it has trouble with is:
>>
>>If file(serverfile)
>>> copy file (serverfile) to (localfile)
>>endif
>>
>>In the debugger window, when I check the value of the variable(serverfile), it is \\server\folder\subfolder\myfile.ext as it should be.
>>
>>Can someone tell me what I forgot to set?
>>
>>Thank you in advance.
>>
>>Mike Frye
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform