Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COPY FILE conflict with .APP
Message
From
24/05/2002 20:32:03
 
 
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:
00661303
Views:
21
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 ?
>
>Thanks for any help.


Alan,

You're not using double-backslash with drive letters right?

Try:
s1='\\server\share\dir\main.fxp'
s2='\\otherserver\share\dir\main.fxp'

*-- OR
s1='C:\dir\main.fxp'
s2='D:\dir\main.fxp'
- Brian


VFP6 SP5, VFP8 SP1, VFP 9 SP 1 and Win XP SP 3 (unless otherwise specified)


www.wulfsden.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform