Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COPY FILE conflict with .APP
Message
From
24/05/2002 20:27:18
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
24/05/2002 20:24:32
Alan Law
Apocalypse Enterprises Inc.
Victoria, British Columbia, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00661301
Message ID:
00661302
Views:
25
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform