Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COPY FILE conflict with .APP
Message
De
24/05/2002 20:27:18
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
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:
00661302
Vues:
24
>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 ?

The explanation seems sensible. VFP's built-in commands look within the EXE (or APP) first.

Usually, the COPY command would work. Perhaps you should - exceptionally - use the DOS COPY command, the Windows API, or WSH.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform