Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COPY FILE conflict with .APP
Message
 
 
À
24/05/2002 20:24:32
Alan Law
Apocalypse Enterprises Inc.
Victoria, Colombie Britannique, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00661301
Message ID:
00661308
Vues:
23
This message has been marked as the solution to the initial question of the thread.
>Here is the problem:
>
>s1='\\drive\dir\main.fxp'
>s2='\\otherdrive\dir\main.fxp'
>copy file (s1) to (s2)
>
>Works fine until I run from within an APP, where another file called MAIN.FXP is also included. In this case, I get the error:
>
>C:\temp\main.fxp does not exist.
>
>It seems that even thought the source file is fully qualified, VFP overrides it with the embedded file. Seems bizarre. If this is true, how do I work around this VFP bug ?
>
>If not, is there another explanation for this problem ?
>

Your explanation is correct. VFP finds file in the application ignoring the path specified. You can use something external to VFP, like CopyFile WIN API #75 function or WSH FileSystemObject to copy file like that.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform