Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy file syntax
Message
From
02/06/2008 11:11:00
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
02/06/2008 11:00:44
Ransome So
Ransome's Workshop
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 2000 SP4
Miscellaneous
Thread ID:
01320997
Message ID:
01321004
Views:
14
>Dear all,
>
>In order to copy a file to the mass storage media, a claue copy file to perform the action :
>
>a="filename.ext"
>b="g:\filename.ext"
>
>copy file a to b
>
>The system report to me that no file named a.
>
>What wrong to me ??
>
>
>
>Regards,
>
>Ransome

Without the parentheses (as shown in the other replies you got), VFP will search for files that have that exact name: "a" and "b". Parentheses force VFP to evaluate the variable.
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